Fix crash on PIN code settings screen

This commit is contained in:
Jorge Martín 2022-08-31 16:01:15 +02:00 committed by Jorge Martin Espinosa
parent 318352f1bd
commit 3ef3e3760d
2 changed files with 4 additions and 1 deletions

1
changelog.d/6979.bugfix Normal file
View File

@ -0,0 +1 @@
Fix crash on PIN code settings screen.

View File

@ -50,7 +50,9 @@ class VectorSettingsPinFragment :
override var titleRes = R.string.settings_security_application_protection_screen_title
override val preferenceXmlRes = R.xml.vector_settings_pin
private val biometricHelper = biometricHelperFactory.create(defaultLockScreenConfiguration.copy(mode = LockScreenMode.CREATE))
private val biometricHelper by lazy {
biometricHelperFactory.create(defaultLockScreenConfiguration.copy(mode = LockScreenMode.CREATE))
}
private val usePinCodePref by lazy {
findPreference<SwitchPreference>(VectorPreferences.SETTINGS_SECURITY_USE_PIN_CODE_FLAG)!!