Synchronizing on the new-apps list before modifying it. (Bug 6621553)

- Minor tweak to qsb padding
- Adding yet more logging for single-app-page issue

Change-Id: I4272dd7a70c9ac26f026b03a1f991f14844fdb9d
This commit is contained in:
Winson Chung committed 2012-06-06 15:57:27 -07:00
1 parent e6d3361ee8
commit bfeac0681b
12 files changed
+35 -29

No files matched your search

+10 -8
View File
@@ -3659,14 +3659,16 @@ public class Workspace extends SmoothPagedView
}
// Remove all queued items that match the same package
if (newApps != null) {
for (String intentStr : newApps) {
try {
Intent intent = Intent.parseUri(intentStr, 0);
String pn = ItemInfo.getPackageName(intent);
if (packageNames.contains(pn)) {
newApps.remove(intentStr);
}
} catch (URISyntaxException e) {}
synchronized (newApps) {
for (String intentStr : newApps) {
try {
Intent intent = Intent.parseUri(intentStr, 0);
String pn = ItemInfo.getPackageName(intent);
if (packageNames.contains(pn)) {
newApps.remove(intentStr);
}
} catch (URISyntaxException e) {}
}
}
}
}