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() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
|
init()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun init() {
|
||||||
receiver = UnlockReceiver()
|
receiver = UnlockReceiver()
|
||||||
registerReceiver(receiver, IntentFilter(Intent.ACTION_USER_PRESENT))
|
registerReceiver(receiver, IntentFilter(Intent.ACTION_USER_PRESENT))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue