|
@@ -55,6 +55,7 @@ import uy.kohesive.injekt.Injekt
|
|
|
import uy.kohesive.injekt.api.get
|
|
|
import uy.kohesive.injekt.injectLazy
|
|
|
import java.security.Security
|
|
|
+import java.util.Date
|
|
|
|
|
|
class App : Application(), DefaultLifecycleObserver, ImageLoaderFactory {
|
|
|
|
|
@@ -156,6 +157,7 @@ class App : Application(), DefaultLifecycleObserver, ImageLoaderFactory {
|
|
|
}
|
|
|
|
|
|
override fun onStop(owner: LifecycleOwner) {
|
|
|
+ preferences.lastAppClosed().set(Date().time)
|
|
|
if (!AuthenticatorUtil.isAuthenticating && preferences.lockAppAfter().get() >= 0) {
|
|
|
SecureActivityDelegate.locked = true
|
|
|
}
|