Horis 2 лет назад
Родитель
Сommit
4dd3ba95fb
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/src/main/java/io/legado/app/service/BaseReadAloudService.kt

+ 1 - 0
app/src/main/java/io/legado/app/service/BaseReadAloudService.kt

@@ -500,6 +500,7 @@ abstract class BaseReadAloudService : BaseService(),
             .Builder(this@BaseReadAloudService, AppConst.channelIdReadAloud)
             .setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
             .setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
+            .setCategory(NotificationCompat.CATEGORY_TRANSPORT)
             .setSmallIcon(R.drawable.ic_volume_up)
             .setSubText(getString(R.string.read_aloud))
             .setOngoing(true)