Merge "Fix crash issue on Storage Manager app" am: cb4a3c55cf am: 69be98ae52
am: 5fc179b22d
Change-Id: I13a5780d407f596a7026d36d55130fa98eb0882f
This commit is contained in:
@@ -686,7 +686,11 @@ public class ApplicationsState {
|
||||
}
|
||||
|
||||
if (comparator != null) {
|
||||
Collections.sort(filteredApps, comparator);
|
||||
synchronized (mEntriesMap) {
|
||||
// Locking to ensure that the background handler does not mutate
|
||||
// the size of AppEntries used for ordering while sorting.
|
||||
Collections.sort(filteredApps, comparator);
|
||||
}
|
||||
}
|
||||
|
||||
synchronized (mRebuildSync) {
|
||||
|
||||
Reference in New Issue
Block a user