mirror of https://github.com/x13a/Wasted.git
ref
This commit is contained in:
parent
48df177510
commit
717cc7b25b
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue