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

Commit 931f507c authored by chen xu's avatar chen xu
Browse files

create a new notification channel for high prio sim alert

create a high priority notification channel for sim releated alert
in some scenario, we want users to know that they cannot completely
rely on their ability to make a phone call and data call with the
SIM and this may apply to emergency situations.

Bug: 134790138
Test: Manual test
Change-Id: I312383efa36042fe8d2b89a1800fc3e5b856ba32
parent 152893d0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -44,6 +44,11 @@ public class NotificationChannelController {
    public static final String CHANNEL_ID_SMS = "sms";
    public static final String CHANNEL_ID_VOICE_MAIL = "voiceMail";
    public static final String CHANNEL_ID_WFC = "wfc";
    /**
     * This channel is for sim related notifications similar as CHANNEL_ID_SIM except that this is
     * high priority while CHANNEL_ID_SIM is low priority.
     */
    public static final String CHANNEL_ID_SIM_HIGH_PRIORITY = "simHighPriority";

    /** deprecated channel, replaced with @see #CHANNEL_ID_MOBILE_DATA_STATUS */
    private static final String CHANNEL_ID_MOBILE_DATA_ALERT_DEPRECATED = "mobileDataAlert";
@@ -95,6 +100,9 @@ public class NotificationChannelController {
                new NotificationChannel(CHANNEL_ID_WFC,
                        context.getText(R.string.notification_channel_wfc),
                        NotificationManager.IMPORTANCE_LOW),
                new NotificationChannel(CHANNEL_ID_SIM_HIGH_PRIORITY,
                        context.getText(R.string.notification_channel_sim_high_prio),
                        NotificationManager.IMPORTANCE_HIGH),
                alertChannel, mobileDataStatusChannel,
                simChannel, callforwardChannel));