mirror of
https://github.com/readest/readest.git
synced 2026-04-29 03:50:52 +00:00
feat: request manage external storage permission when changing data directory to sdcard root on Android (#2142)
This commit is contained in:
parent
0a1e0212e2
commit
1d4541e353
20 changed files with 357 additions and 30 deletions
|
|
@ -150,10 +150,10 @@ class MediaForegroundService : Service() {
|
|||
val notification = NotificationCompat.Builder(this, CHANNEL_ID)
|
||||
.setContentTitle("TTS Media Session")
|
||||
.setContentText("Text-to-speech playback active")
|
||||
.setSmallIcon(android.R.drawable.ic_media_play) // Replace with your icon
|
||||
.setSmallIcon(android.R.drawable.ic_media_play)
|
||||
.setOngoing(true)
|
||||
.setSilent(true)
|
||||
.setPriority(NotificationCompat.PRIORITY_LOW)
|
||||
.setPriority(NotificationCompat.PRIORITY_MIN)
|
||||
.setCategory(NotificationCompat.CATEGORY_SERVICE)
|
||||
.build()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue