This commit is contained in:
Horis
2024-08-16 14:31:33 +08:00
parent bcd6837abb
commit d68404c6a4
@@ -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)