Skip to content

Commit

Permalink
Fix auth alert strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Bigagnoli committed Feb 15, 2018
1 parent bb84e92 commit 9c3fd6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Pellicola/Classes/PellicolaPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public final class PellicolaPresenter: NSObject {
// MARK: - Helper method

private func openSettingsAlert() -> UIAlertController {
let alert = UIAlertController(title: NSLocalizedString("alert_access_denied.title", bundle: Bundle.framework, comment: ""),
message: NSLocalizedString("alert_access_denied.message", bundle: Bundle.framework, comment: ""),
let title = style.alertAccessDeniedTitle ?? NSLocalizedString("alert_access_denied.title", bundle: Bundle.framework, comment: "")
let message = style.alertAccessDeniedMessage ?? NSLocalizedString("alert_access_denied.message", bundle: Bundle.framework, comment: "")
let alert = UIAlertController(title: title,
message: message,
preferredStyle: .alert)
let okAction = UIAlertAction(title: NSLocalizedString("alert_access_denied.later", bundle: Bundle.framework, comment: ""), style: .default, handler: { [weak self] _ in
self?.userDidCancel?()
Expand Down

0 comments on commit 9c3fd6b

Please sign in to comment.