优化
This commit is contained in:
@@ -166,7 +166,7 @@ class App : Application() {
|
|||||||
val readAloudChannel = NotificationChannel(
|
val readAloudChannel = NotificationChannel(
|
||||||
channelIdReadAloud,
|
channelIdReadAloud,
|
||||||
getString(R.string.read_aloud),
|
getString(R.string.read_aloud),
|
||||||
NotificationManager.IMPORTANCE_HIGH
|
NotificationManager.IMPORTANCE_DEFAULT
|
||||||
).apply {
|
).apply {
|
||||||
enableLights(false)
|
enableLights(false)
|
||||||
enableVibration(false)
|
enableVibration(false)
|
||||||
|
|||||||
@@ -541,7 +541,6 @@ abstract class BaseReadAloudService : BaseService(),
|
|||||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||||
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
|
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
|
||||||
.setCategory(NotificationCompat.CATEGORY_TRANSPORT)
|
.setCategory(NotificationCompat.CATEGORY_TRANSPORT)
|
||||||
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
|
||||||
.setSmallIcon(R.drawable.ic_volume_up)
|
.setSmallIcon(R.drawable.ic_volume_up)
|
||||||
.setSubText(getString(R.string.read_aloud))
|
.setSubText(getString(R.string.read_aloud))
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user