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:
Amith Yamasani
2012-10-17 13:27:19 -07:00
parent 7d078f942f
commit 7a1c4cdfae

View File

@@ -491,7 +491,7 @@ public class InstalledAppDetails extends Fragment
showIt = false;
} else if (UserHandle.myUserId() != 0) {
showIt = false;
} else if (mUserManager.getUsers().size() < 1) {
} else if (mUserManager.getUsers().size() < 2) {
showIt = false;
}
menu.findItem(UNINSTALL_ALL_USERS_MENU).setVisible(showIt);