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

Commit 11176569 authored by Amin Shaikh's avatar Amin Shaikh
Browse files

Create a NotificationChannel for ONA.

- Construct the NETWORK_AVAILABLE NotificationChannel in
SystemNotificationChannels

Bug: 37794067
Test: make
Change-Id: I27aa69f8d038af238343eabc706147a02cad7330
parent 08f21acc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ public class SystemNotificationChannels {
    public static String UPDATES = "UPDATES";
    public static String NETWORK_STATUS = "NETWORK_STATUS";
    public static String NETWORK_ALERTS = "NETWORK_ALERTS";
    public static String NETWORK_AVAILABLE = "NETWORK_AVAILABLE";
    public static String VPN = "VPN";
    public static String DEVICE_ADMIN = "DEVICE_ADMIN";
    public static String ALERTS = "ALERTS";
@@ -98,6 +99,11 @@ public class SystemNotificationChannels {
                Notification.AUDIO_ATTRIBUTES_DEFAULT);
        channelsList.add(networkAlertsChannel);

        channelsList.add(new NotificationChannel(
                NETWORK_AVAILABLE,
                context.getString(R.string.notification_channel_network_available),
                NotificationManager.IMPORTANCE_LOW));

        channelsList.add(new NotificationChannel(
                VPN,
                context.getString(R.string.notification_channel_vpn),
+3 −0
Original line number Diff line number Diff line
@@ -629,6 +629,9 @@
    <!-- Text shown when viewing channel settings for notifications related to network alerts -->
    <string name="notification_channel_network_alerts">Network alerts</string>

    <!-- Text shown when viewing the channel settings for notification about open nearby wireless networks. -->
    <string name="notification_channel_network_available">Network available</string>

    <!-- Text shown when viewing channel settings for notifications related to vpn status -->
    <string name="notification_channel_vpn">VPN status</string>

+1 −0
Original line number Diff line number Diff line
@@ -2966,6 +2966,7 @@
  <java-symbol type="string" name="notification_channel_updates" />
  <java-symbol type="string" name="notification_channel_network_status" />
  <java-symbol type="string" name="notification_channel_network_alerts" />
  <java-symbol type="string" name="notification_channel_network_available" />
  <java-symbol type="string" name="notification_channel_vpn" />
  <java-symbol type="string" name="notification_channel_device_admin" />
  <java-symbol type="string" name="notification_channel_alerts" />