Eliminate useless 'isManagedProfile' utils method
This exists in UserManager now Change-Id: If35326a1fe0de3c7bfde842c5c170899dc5d819b
This commit is contained in:
@@ -62,7 +62,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver {
|
||||
if (action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) {
|
||||
UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
// skip the notification for managed profiles.
|
||||
if (com.android.settings.Utils.isManagedProfile(um)) {
|
||||
if (um.isManagedProfile()) {
|
||||
if (DEBUG) Log.d(TAG, "Blocking notification for managed profile.");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user