Fix check for multiple users
Bug: 7365839 Remove the Uninstall for all users option if less than 2 users on the device. Change-Id: I5d2d853e05e1d505b67f8b83b1d5ea7f9c6e7215
This commit is contained in:
@@ -491,7 +491,7 @@ public class InstalledAppDetails extends Fragment
|
|||||||
showIt = false;
|
showIt = false;
|
||||||
} else if (UserHandle.myUserId() != 0) {
|
} else if (UserHandle.myUserId() != 0) {
|
||||||
showIt = false;
|
showIt = false;
|
||||||
} else if (mUserManager.getUsers().size() < 1) {
|
} else if (mUserManager.getUsers().size() < 2) {
|
||||||
showIt = false;
|
showIt = false;
|
||||||
}
|
}
|
||||||
menu.findItem(UNINSTALL_ALL_USERS_MENU).setVisible(showIt);
|
menu.findItem(UNINSTALL_ALL_USERS_MENU).setVisible(showIt);
|
||||||
|
Reference in New Issue
Block a user