Explicitly set defaults for service notifications

This commit is contained in:
M66B
2020-02-10 20:06:55 +01:00
parent e6749d5ef1
commit e91b411cf7
3 changed files with 3 additions and 0 deletions

View File

@@ -141,6 +141,7 @@ public class ServiceExternal extends Service {
.setContentTitle(getString(R.string.tile_synchronize))
.setAutoCancel(false)
.setShowWhen(false)
.setDefaults(0) // disable sound on pre Android 8
.setPriority(NotificationCompat.PRIORITY_MIN)
.setCategory(NotificationCompat.CATEGORY_SERVICE)
.setVisibility(NotificationCompat.VISIBILITY_SECRET)