Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a371b42 authored by fionaxu's avatar fionaxu
Browse files

allow users to block alert system notifications

allow users to block notifications posted from alert channels

Bug: 70168086
Test: Manual
Change-Id: Icad6491aa4942ce747ff17f60361269d701ac035
parent f675639d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -58,6 +58,8 @@ public class NotificationChannelController {
                NotificationManager.IMPORTANCE_DEFAULT);
        alertChannel.setSound(Settings.System.DEFAULT_NOTIFICATION_URI,
                new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build());
        // allow users to block notifications from system
        alertChannel.setBlockableSystem(true);

        final NotificationChannel mobileDataStatusChannel = new NotificationChannel(
                CHANNEL_ID_MOBILE_DATA_STATUS,