Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 377b8df3 authored by Alexandra Gherghina's avatar Alexandra Gherghina Committed by Android (Google) Code Review
Browse files

Merge "Checks if the right user has a restriction" into lmp-dev

parents 76f5c3bc e82d0f2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -239,7 +239,7 @@ public class AccountSyncSettings extends AccountPreferenceBase {
                getString(R.string.sync_menu_sync_cancel))
                .setIcon(com.android.internal.R.drawable.ic_menu_close_clear_cancel);
        final UserManager um = (UserManager) getSystemService(Context.USER_SERVICE);
        if (!um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS)) {
        if (!um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle)) {
            MenuItem removeAccount = menu.add(0, MENU_REMOVE_ACCOUNT_ID, 0,
                    getString(R.string.remove_account_label))
                    .setIcon(R.drawable.ic_menu_delete_holo_dark);