Fix crash in settings -> apps after adding profile
Bug: 20652411 Change-Id: I766f99ee520ab106ec2765c77057042ed14e8fed
This commit is contained in:
@@ -790,6 +790,10 @@ public class ApplicationsState {
|
|||||||
mApplications = new ArrayList<ApplicationInfo>();
|
mApplications = new ArrayList<ApplicationInfo>();
|
||||||
for (UserHandle user : mUm.getUserProfiles()) {
|
for (UserHandle user : mUm.getUserProfiles()) {
|
||||||
try {
|
try {
|
||||||
|
// If this user is new, it needs a map created.
|
||||||
|
if (mEntriesMap.indexOfKey(user.getIdentifier()) < 0) {
|
||||||
|
mEntriesMap.put(user.getIdentifier(), new HashMap<String, AppEntry>());
|
||||||
|
}
|
||||||
ParceledListSlice<ApplicationInfo> list =
|
ParceledListSlice<ApplicationInfo> list =
|
||||||
mIpm.getInstalledApplications(
|
mIpm.getInstalledApplications(
|
||||||
user.isOwner() ? mOwnerRetrieveFlags : mRetrieveFlags,
|
user.isOwner() ? mOwnerRetrieveFlags : mRetrieveFlags,
|
||||||
|
Reference in New Issue
Block a user