Notification should make no sound
authorChristian Weiske <[email protected]>
Wed, 28 Aug 2024 16:43:46 +0000 (18:43 +0200)
committerChristian Weiske <[email protected]>
Wed, 28 Aug 2024 16:43:49 +0000 (18:43 +0200)
src/de/cweiske/headphoneindicator/MainActivity.java

index 789efd9d0ea8f6dca34a6c21a28dab04563b0a51..1e0ddeefeef038e2425f408e636db88e7d8f6a6c 100644 (file)
@@ -86,7 +86,9 @@ public class MainActivity extends Activity {
         CharSequence name = getString(R.string.channel_name);
         String description = getString(R.string.channel_description);
         NotificationChannel channel = new NotificationChannel(
-            NotificationReceiver.CHANNEL, name, NotificationManager.IMPORTANCE_DEFAULT
+            NotificationReceiver.CHANNEL, name,
+            //low = no sound
+            NotificationManager.IMPORTANCE_LOW
         );
         channel.setDescription(description);