This commit is contained in:
Horis
2024-11-01 17:20:11 +08:00
parent 58ec6e80c9
commit c3713273bf
2 changed files with 1 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ class App : Application() {
val readAloudChannel = NotificationChannel(
channelIdReadAloud,
getString(R.string.read_aloud),
NotificationManager.IMPORTANCE_HIGH
NotificationManager.IMPORTANCE_DEFAULT
).apply {
enableLights(false)
enableVibration(false)

View File

@@ -541,7 +541,6 @@ abstract class BaseReadAloudService : BaseService(),
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
.setCategory(NotificationCompat.CATEGORY_TRANSPORT)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setSmallIcon(R.drawable.ic_volume_up)
.setSubText(getString(R.string.read_aloud))
.setOngoing(true)