Clean up UserHandle.isOwner() in telephony
Bug: 24869636
Change-Id: I071ff7816f86f2bdfcdf79a878ad50a899881dad
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index 100a38c..e6f28e9 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -557,7 +557,7 @@
continue;
}
UserHandle userHandle = user.getUserHandle();
- builder.setContentIntent(userHandle.isOwner() ? contentIntent : null);
+ builder.setContentIntent(user.isAdmin() ? contentIntent : null);
mNotificationManager.notifyAsUser(
Integer.toString(subId) /* tag */,
CALL_FORWARD_NOTIFICATION,
@@ -599,7 +599,7 @@
continue;
}
UserHandle userHandle = user.getUserHandle();
- builder.setContentIntent(userHandle.isOwner() ? contentIntent : null);
+ builder.setContentIntent(user.isAdmin() ? contentIntent : null);
final Notification notif =
new Notification.BigTextStyle(builder).bigText(contentText).build();
mNotificationManager.notifyAsUser(
@@ -648,7 +648,7 @@
continue;
}
UserHandle userHandle = user.getUserHandle();
- builder.setContentIntent(userHandle.isOwner() ? contentIntent : null);
+ builder.setContentIntent(user.isAdmin() ? contentIntent : null);
mNotificationManager.notifyAsUser(
null /* tag */,
SELECTED_OPERATOR_FAIL_NOTIFICATION,