@ -55,4 +55,8 @@ object AppConst {
set(value) {
App.INSTANCE.putPrefBoolean("bookGroupAudio", value)
}
const val notificationIdRead = 12
const val notificationIdAudio = 13
const val notificationIdWeb = 14
@ -343,7 +343,7 @@ class AudioPlayService : BaseService(),
)
builder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
val notification = builder.build()
startForeground(112201, notification)
startForeground(AppConst.notificationIdAudio, notification)
/**
@ -320,7 +320,7 @@ abstract class BaseReadAloudService : BaseService(),
startForeground(AppConst.notificationIdRead, notification)
abstract fun aloudServicePendingIntent(actionStr: String): PendingIntent?
@ -63,7 +63,6 @@ class WebService : BaseService() {
val notificationId = 1122
startForeground(notificationId, notification)
startForeground(AppConst.notificationIdWeb, notification)