OSDN Git Service
(root)
/
android-x86
/
packages-apps-Trebuchet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f915d
)
Trebuchet: Fix NPE while binding unavailable items
author
cretin45
<cretin45@gmail.com>
Thu, 24 Mar 2016 18:37:44 +0000
(11:37 -0700)
committer
cretin45
<cretin45@gmail.com>
Thu, 24 Mar 2016 18:38:20 +0000
(11:38 -0700)
Issue-id: CYNGNOS-2282
Change-Id: I6895c3c043a2b8a9506f3dc2f8a357942d8f35c4
src/com/android/launcher3/Workspace.java
patch
|
blob
|
history
diff --git
a/src/com/android/launcher3/Workspace.java
b/src/com/android/launcher3/Workspace.java
index
6114157
..
d5b6de0
100644
(file)
--- a/
src/com/android/launcher3/Workspace.java
+++ b/
src/com/android/launcher3/Workspace.java
@@
-4375,7
+4375,9
@@
public class Workspace extends PagedView
final int N = folderPagedView.getItemCount();
for (int page = 0; page < N; page++) {
final CellLayout cellLayout = folderPagedView.getPageAt(page);
- updateUnvailableItemsInCellLayout(cellLayout, packages);
+ if (cellLayout != null) {
+ updateUnvailableItemsInCellLayout(cellLayout, packages);
+ }
}
folder.invalidate();
}