mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
Fix #4461 - "PIN & (NULL)" when device biometrics not available (or not enrolled).
This commit is contained in:
committed by
Stefan Ceriu
parent
b4d51ab4ba
commit
a37d7831a1
@@ -292,9 +292,12 @@ TableViewSectionsDelegate>
|
||||
Section *pinCodeSection = [Section sectionWithTag:SECTION_PIN_CODE];
|
||||
|
||||
// Header title
|
||||
NSString *pinCodeSectionHeaderTitleFormat = NSLocalizedStringFromTable(@"pin_protection_settings_section_header_x", @"Vector", nil);
|
||||
NSString *pinCodeSectionHeaderTitle = [NSString stringWithFormat:pinCodeSectionHeaderTitleFormat, [PinCodePreferences shared].localizedBiometricsName];
|
||||
pinCodeSection.headerTitle = pinCodeSectionHeaderTitle;
|
||||
if ([PinCodePreferences shared].isBiometricsAvailable)
|
||||
{
|
||||
NSString *pinCodeSectionHeaderTitleFormat = NSLocalizedStringFromTable(@"pin_protection_settings_section_header_x", @"Vector", nil);
|
||||
NSString *pinCodeSectionHeaderTitle = [NSString stringWithFormat:pinCodeSectionHeaderTitleFormat, [PinCodePreferences shared].localizedBiometricsName];
|
||||
pinCodeSection.headerTitle = pinCodeSectionHeaderTitle;
|
||||
}
|
||||
|
||||
// Rows
|
||||
[pinCodeSection addRowWithTag:PIN_CODE_SETTING];
|
||||
|
||||
Reference in New Issue
Block a user