From: Christian Weiske Date: Wed, 28 Aug 2024 16:43:46 +0000 (+0200) Subject: Notification should make no sound X-Git-Tag: v1.1.0~4 X-Git-Url: https://git.cweiske.de/headphoneindicator.git/commitdiff_plain/d48138cbb0b54ef8a2cc908dd6f36b5d01aa43ae Notification should make no sound --- 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);