mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-23 14:29:02 +03:00
Fix crash on PIN code settings screen
This commit is contained in:
parent
318352f1bd
commit
3ef3e3760d
2 changed files with 4 additions and 1 deletions
changelog.d
vector/src/main/java/im/vector/app/features/settings
1
changelog.d/6979.bugfix
Normal file
1
changelog.d/6979.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix crash on PIN code settings screen.
|
|
@ -50,7 +50,9 @@ class VectorSettingsPinFragment :
|
||||||
override var titleRes = R.string.settings_security_application_protection_screen_title
|
override var titleRes = R.string.settings_security_application_protection_screen_title
|
||||||
override val preferenceXmlRes = R.xml.vector_settings_pin
|
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 {
|
private val usePinCodePref by lazy {
|
||||||
findPreference<SwitchPreference>(VectorPreferences.SETTINGS_SECURITY_USE_PIN_CODE_FLAG)!!
|
findPreference<SwitchPreference>(VectorPreferences.SETTINGS_SECURITY_USE_PIN_CODE_FLAG)!!
|
||||||
|
|
Loading…
Add table
Reference in a new issue