This commit is contained in:
lucky 2022-01-22 18:05:57 +03:00
parent f61578d853
commit b0f51da4a4
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ class ForegroundService : Service() {
override fun onCreate() {
super.onCreate()
init()
}
private fun init() {
receiver = UnlockReceiver()
registerReceiver(receiver, IntentFilter(Intent.ACTION_USER_PRESENT))
}