This commit is contained in:
lucky 2022-02-17 04:54:37 +03:00
parent c43cf2de90
commit 4f9d4991f3
1 changed files with 1 additions and 2 deletions

View File

@ -54,8 +54,7 @@ class ForegroundService : Service() {
private class UnlockReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
if (context == null ||
context.getSystemService(KeyguardManager::class.java)?.isDeviceSecure != true ||
if (context?.getSystemService(KeyguardManager::class.java)?.isDeviceSecure != true ||
!Preferences(context).isWipeOnInactivity) return
Thread(Runner(context, goAsync())).start()
}