Commit 9a6ca575 authored by wanglei's avatar wanglei

...

parent 53667bb2
......@@ -55,7 +55,9 @@ class PermanentNotificationService : Service() {
}
val notification = createPermanentNotification(applicationContext)
startForeground(1, notification)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
startForeground(10088, notification)
}
return START_STICKY
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment