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