Merge "Wifi details - handle no profile owner" into rvc-dev am: dd1d9c4db0
am: ec64a1d562
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11866803 Change-Id: Iee37736fca1db6cac3580b804e0045e9df57f4aa
This commit is contained in:
@@ -142,8 +142,10 @@ public class WifiNetworkDetailsFragment2 extends DashboardFragment implements
|
||||
getContext().getSystemService(Context.USER_SERVICE);
|
||||
final int profileOwnerUserId = Utils.getManagedProfileId(
|
||||
um, UserHandle.myUserId());
|
||||
admin = new EnforcedAdmin(dpm.getProfileOwnerAsUser(profileOwnerUserId),
|
||||
null, UserHandle.of(profileOwnerUserId));
|
||||
if (profileOwnerUserId != UserHandle.USER_NULL) {
|
||||
admin = new EnforcedAdmin(dpm.getProfileOwnerAsUser(profileOwnerUserId),
|
||||
null, UserHandle.of(profileOwnerUserId));
|
||||
}
|
||||
}
|
||||
RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), admin);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user