voicemail notification settings cleanup
[android/platform/frameworks/opt/telephony.git] / src / java / com / android / internal / telephony / util / NotificationChannelController.java
index 785c3cc..8d967b1 100644 (file)
@@ -84,6 +84,11 @@ public class NotificationChannelController {
         createAll(context);
     }
 
+    public static NotificationChannel getChannel(String channelId, Context context) {
+        return context.getSystemService(NotificationManager.class)
+                .getNotificationChannel(channelId);
+    }
+
     // rename all registered channels on locale change
     private BroadcastReceiver mLocaleChangeReceiver = new BroadcastReceiver() {
         @Override