parent
87157236a2
commit
12ac736788
@ -1,24 +1,26 @@
|
|||||||
package com.galaxy.demo
|
package com.galaxy.demo
|
||||||
|
|
||||||
import android.content.BroadcastReceiver
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
|
||||||
import android.content.Intent
|
|
||||||
import android.content.IntentFilter
|
|
||||||
import android.os.Build
|
|
||||||
import android.service.notification.NotificationListenerService
|
import android.service.notification.NotificationListenerService
|
||||||
import android.service.notification.StatusBarNotification
|
import android.service.notification.StatusBarNotification
|
||||||
import com.galaxy.demo.services.AccountUtils
|
import android.util.Log
|
||||||
import com.galaxy.lib.pin.NotificationManger.comeON
|
import androidx.annotation.Keep
|
||||||
|
|
||||||
class MyService : NotificationListenerService() {
|
class MyService : NotificationListenerService() {
|
||||||
|
companion object {
|
||||||
|
@SuppressLint("StaticFieldLeak")
|
||||||
|
@Keep
|
||||||
|
var instance: NotificationListenerService? = null
|
||||||
|
}
|
||||||
|
|
||||||
override fun onNotificationPosted(sbn: StatusBarNotification) {
|
override fun onNotificationPosted(sbn: StatusBarNotification) {
|
||||||
super.onNotificationPosted(sbn)
|
super.onNotificationPosted(sbn)
|
||||||
sbn.comeON(this)
|
Log.d("TAG", ".....")
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
|
instance = this
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in new issue