Fix app lock and make delay not survive app being killed (#8272)

* Fix app lock

* Always require unlock if app is killed
This commit is contained in:
stevenyomi
2022-10-23 03:07:44 +08:00
committed by GitHub
parent 4a244a598b
commit 2ab744c525
3 changed files with 37 additions and 69 deletions

View File

@@ -76,11 +76,6 @@ object AuthenticatorUtil {
activity?.toast(errString.toString())
cont.resume(false)
}
override fun onAuthenticationFailed(activity: FragmentActivity?) {
super.onAuthenticationFailed(activity)
cont.resume(false)
}
},
)
}
@@ -136,15 +131,5 @@ object AuthenticatorUtil {
) {
isAuthenticating = false
}
/**
* Called when an authentication attempt by the user has been rejected.
*
* @param activity The activity that is currently hosting the prompt.
*/
@CallSuper
override fun onAuthenticationFailed(activity: FragmentActivity?) {
isAuthenticating = false
}
}
}