Merge "Wifi details - handle no profile owner" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd1d9c4db0
@@ -142,9 +142,11 @@ public class WifiNetworkDetailsFragment2 extends DashboardFragment implements
|
|||||||
getContext().getSystemService(Context.USER_SERVICE);
|
getContext().getSystemService(Context.USER_SERVICE);
|
||||||
final int profileOwnerUserId = Utils.getManagedProfileId(
|
final int profileOwnerUserId = Utils.getManagedProfileId(
|
||||||
um, UserHandle.myUserId());
|
um, UserHandle.myUserId());
|
||||||
|
if (profileOwnerUserId != UserHandle.USER_NULL) {
|
||||||
admin = new EnforcedAdmin(dpm.getProfileOwnerAsUser(profileOwnerUserId),
|
admin = new EnforcedAdmin(dpm.getProfileOwnerAsUser(profileOwnerUserId),
|
||||||
null, UserHandle.of(profileOwnerUserId));
|
null, UserHandle.of(profileOwnerUserId));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), admin);
|
RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), admin);
|
||||||
} else {
|
} else {
|
||||||
showDialog(WIFI_DIALOG_ID);
|
showDialog(WIFI_DIALOG_ID);
|
||||||
|
Reference in New Issue
Block a user