This commit is contained in:
lucky 2022-01-25 14:12:05 +03:00
parent 454e4916e6
commit 17454fdfb4
1 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,10 @@ import kotlin.concurrent.timerTask
@RequiresApi(Build.VERSION_CODES.N)
class QSTileService : TileService() {
companion object {
private const val SAFE_DELAY = 2000L
}
private lateinit var prefs: Preferences
private lateinit var admin: DeviceAdminManager
private val counter = AtomicInteger()
@ -52,7 +56,7 @@ class QSTileService : TileService() {
admin.lockNow()
admin.wipeData()
} catch (exc: SecurityException) {}
}, 2000)
}, SAFE_DELAY)
}
else -> {
timer?.cancel()