Commit 216d9146 authored by wanglei's avatar wanglei

...前台通知类型处理

parent 3d9fe2d8
...@@ -30,6 +30,9 @@ class PermanentNotificationService : Service() { ...@@ -30,6 +30,9 @@ class PermanentNotificationService : Service() {
var isRunning = false var isRunning = false
fun Context.startNotification() { fun Context.startNotification() {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) {
return
}
if (ConfigHelper.remainNotification) { if (ConfigHelper.remainNotification) {
val intent = Intent(this, PermanentNotificationService::class.java) val intent = Intent(this, PermanentNotificationService::class.java)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
......
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