feat: request manage external storage permission when changing data directory to sdcard root on Android (#2142)

This commit is contained in:
Huang Xin 2025-09-30 14:59:16 +08:00 committed by GitHub
parent 0a1e0212e2
commit 1d4541e353
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 357 additions and 30 deletions

View file

@ -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()