This commit is contained in:
lucky 2022-01-11 06:58:05 +03:00
parent 48df177510
commit 717cc7b25b
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ class UnlockService : Service() {
val keyguardManager = context
.getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager
if (!keyguardManager.isDeviceSecure) return
while (WipeJobManager(context).schedule() == JobScheduler.RESULT_FAILURE)
val manager = WipeJobManager(context)
while (manager.schedule() != JobScheduler.RESULT_SUCCESS)
SystemClock.sleep(1000)
}
}