COVIDSafe code from version 1.9 (#18)

This commit is contained in:
COVIDSafe Support 2020-08-03 16:01:39 +10:00 committed by GitHub
parent 2257c542ed
commit 3b1d8fa3f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 4217 additions and 3998 deletions

View file

@ -22,6 +22,7 @@ class OTPViewController: UIViewController, RegistrationHandler {
@IBOutlet weak var codeInputView: CodeInputView?
@IBOutlet weak var expiredMessageLabel: UILabel?
@IBOutlet weak var errorMessageLabel: UILabel?
@IBOutlet weak var stepCounterLabel: UILabel!
@IBOutlet weak var wrongNumberButton: UIButton?
@IBOutlet weak var resendCodeButton: UIButton?
@ -79,7 +80,10 @@ class OTPViewController: UIViewController, RegistrationHandler {
let pinIssuesString = NSLocalizedString("ReceivePinIssue", comment: "Text for pin receive issues button")
let pinIssuesText = NSAttributedString(string: pinIssuesString, attributes: buttonAtt)
self.pinIssuesButton?.setAttributedTitle(pinIssuesText, for: .normal)
stepCounterLabel.text = String.localizedStringWithFormat( "stepCounter".localizedString(),
3,
UserDefaults.standard.bool(forKey: "allowedPermissions") ? 3 : 4
)
}
override func viewWillAppear(_ animated: Bool) {