Fix bad merge of aosp/1098712
Remove references to mNotificationManager. These calls are replaced by
new functions.
Test: manual
Bug: 139308781
Change-Id: I9b8911d125c453d3f02b812b7f192a5bbb0fdcd9
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index f0473c9..228fcea 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -684,7 +684,7 @@
final Notification notification = new Notification.BigTextStyle(builder).bigText(
contentText).build();
- mNotificationManager.notifyAsUser(Integer.toString(subId),
+ notifyAsUser(Integer.toString(subId),
LIMITED_SIM_FUNCTION_NOTIFICATION,
notification, UserHandle.ALL);
mLimitedSimFunctionNotify.add(subId);
@@ -698,12 +698,12 @@
if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
// dismiss all notifications
for (int id : mLimitedSimFunctionNotify) {
- mNotificationManager.cancelAsUser(Integer.toString(id),
+ cancelAsUser(Integer.toString(id),
LIMITED_SIM_FUNCTION_NOTIFICATION, UserHandle.ALL);
}
mLimitedSimFunctionNotify.clear();
} else if (mLimitedSimFunctionNotify.contains(subId)) {
- mNotificationManager.cancelAsUser(Integer.toString(subId),
+ cancelAsUser(Integer.toString(subId),
LIMITED_SIM_FUNCTION_NOTIFICATION, UserHandle.ALL);
mLimitedSimFunctionNotify.remove(subId);
}
@@ -719,7 +719,7 @@
// from the old SIM if both old & new SIM configured to display the notification.
mLimitedSimFunctionNotify.removeIf(id -> {
if (!mSubscriptionManager.isActiveSubId(id)) {
- mNotificationManager.cancelAsUser(Integer.toString(id),
+ cancelAsUser(Integer.toString(id),
LIMITED_SIM_FUNCTION_NOTIFICATION, UserHandle.ALL);
return true;
}