From d48138cbb0b54ef8a2cc908dd6f36b5d01aa43ae Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 28 Aug 2024 18:43:46 +0200 Subject: [PATCH] Notification should make no sound --- src/de/cweiske/headphoneindicator/MainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/cweiske/headphoneindicator/MainActivity.java b/src/de/cweiske/headphoneindicator/MainActivity.java index 789efd9..1e0ddee 100644 --- a/src/de/cweiske/headphoneindicator/MainActivity.java +++ b/src/de/cweiske/headphoneindicator/MainActivity.java @@ -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); -- 2.30.2