diff --git a/PAPermissions/Classes/Checks/PACameraPermissionsCheck.swift b/PAPermissions/Classes/Checks/PACameraPermissionsCheck.swift index e904be5..d7573dc 100644 --- a/PAPermissions/Classes/Checks/PACameraPermissionsCheck.swift +++ b/PAPermissions/Classes/Checks/PACameraPermissionsCheck.swift @@ -52,8 +52,8 @@ public class PACameraPermissionsCheck: PAPermissionsCheck { }else{ self.status = .disabled } + self.updateStatus(); }) - self.updateStatus(); } }else{ //Camera access should be always active on iOS 7 diff --git a/PAPermissions/Classes/PAPermissionsTableViewCell.swift b/PAPermissions/Classes/PAPermissionsTableViewCell.swift index 76b8f6f..2914acb 100644 --- a/PAPermissions/Classes/PAPermissionsTableViewCell.swift +++ b/PAPermissions/Classes/PAPermissionsTableViewCell.swift @@ -192,10 +192,10 @@ class PAPermissionsTableViewCell: UITableViewCell { self.enableButton.imageView?.contentMode = .scaleAspectFit self.enableButton.isUserInteractionEnabled = false }else{ - self.setupEnableDisableButton(title: "Disable") + self.setupEnableDisableButton(title: NSLocalizedString("Disable", comment: "")) } }else if status == .disabled || status == .denied { - self.setupEnableDisableButton(title: "Enable") + self.setupEnableDisableButton(title: NSLocalizedString("Enable", comment: "")) }else if status == .checking { self.enableButton.isHidden = true self.checkingIndicator.isHidden = false diff --git a/PAPermissions/Classes/PAPermissionsView.swift b/PAPermissions/Classes/PAPermissionsView.swift index eb4d3f9..b397fae 100644 --- a/PAPermissions/Classes/PAPermissionsView.swift +++ b/PAPermissions/Classes/PAPermissionsView.swift @@ -290,6 +290,7 @@ class PAPermissionsView: UIView, UITableViewDataSource, UITableViewDelegate { self.detailsLabel.font = UIFont(name: "HelveticaNeue-Light", size: 15) self.detailsLabel.minimumScaleFactor = 0.1 self.detailsLabel.textColor = self.tintColor + self.detailsLabel.adjustsFontSizeToFitWidth = true } fileprivate func setupTableView() {