mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
clean up pin code and biometrics on logout
This commit is contained in:
parent
b90fa1a9ca
commit
6452a95e0a
2 changed files with 7 additions and 3 deletions
1
changelog.d/6906.bugfix
Normal file
1
changelog.d/6906.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Delete pin code key and the key used for biometrics authentication on logout
|
|
@ -41,9 +41,10 @@ import im.vector.app.features.analytics.VectorAnalytics
|
|||
import im.vector.app.features.home.HomeActivity
|
||||
import im.vector.app.features.home.ShortcutsHandler
|
||||
import im.vector.app.features.notifications.NotificationDrawerManager
|
||||
import im.vector.app.features.pin.PinCodeStore
|
||||
import im.vector.app.features.pin.PinLocker
|
||||
import im.vector.app.features.pin.UnlockedActivity
|
||||
import im.vector.app.features.pin.lockscreen.crypto.LockScreenKeyRepository
|
||||
import im.vector.app.features.pin.lockscreen.pincode.PinCodeHelper
|
||||
import im.vector.app.features.popup.PopupAlertManager
|
||||
import im.vector.app.features.session.VectorSessionStore
|
||||
import im.vector.app.features.settings.VectorPreferences
|
||||
|
@ -133,10 +134,11 @@ class MainActivity : VectorBaseActivity<ActivityMainBinding>(), UnlockedActivity
|
|||
@Inject lateinit var vectorPreferences: VectorPreferences
|
||||
@Inject lateinit var uiStateRepository: UiStateRepository
|
||||
@Inject lateinit var shortcutsHandler: ShortcutsHandler
|
||||
@Inject lateinit var pinCodeStore: PinCodeStore
|
||||
@Inject lateinit var pinCodeHelper: PinCodeHelper
|
||||
@Inject lateinit var pinLocker: PinLocker
|
||||
@Inject lateinit var popupAlertManager: PopupAlertManager
|
||||
@Inject lateinit var vectorAnalytics: VectorAnalytics
|
||||
@Inject lateinit var lockScreenKeyRepository: LockScreenKeyRepository
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
@ -284,9 +286,10 @@ class MainActivity : VectorBaseActivity<ActivityMainBinding>(), UnlockedActivity
|
|||
vectorPreferences.clearPreferences()
|
||||
uiStateRepository.reset()
|
||||
pinLocker.unlock()
|
||||
pinCodeStore.deletePinCode()
|
||||
pinCodeHelper.deletePinCode()
|
||||
vectorAnalytics.onSignOut()
|
||||
vectorSessionStore.clear()
|
||||
lockScreenKeyRepository.deleteSystemKey()
|
||||
}
|
||||
withContext(Dispatchers.IO) {
|
||||
// On BG thread
|
||||
|
|
Loading…
Add table
Reference in a new issue