summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-02-22 14:52:03 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-02-22 14:52:03 -0800
commit96ef9f68a43604c99cd18537a6c8e9d1c5049c31 (patch)
treeaa7f5c65540dd6d8c4a02da7f1f170806ef46709 /src/com/android/launcher2
parent869228dadb0e537ce9138dc613c4cbc7e1aed1d3 (diff)
parentbf5350db6166df369a4e22012bc0a7a122f39a51 (diff)
downloadandroid_packages_apps_Trebuchet-96ef9f68a43604c99cd18537a6c8e9d1c5049c31.tar.gz
android_packages_apps_Trebuchet-96ef9f68a43604c99cd18537a6c8e9d1c5049c31.tar.bz2
android_packages_apps_Trebuchet-96ef9f68a43604c99cd18537a6c8e9d1c5049c31.zip
am bf5350db: fix 2460740 com.android.launcher2: java.lang.NullPointerException at com.android.launcher2.AllAppsView.saveAppsList(AllAppsView.java:1270)
Merge commit 'bf5350db6166df369a4e22012bc0a7a122f39a51' into eclair-plus-aosp * commit 'bf5350db6166df369a4e22012bc0a7a122f39a51': fix 2460740 com.android.launcher2: java.lang.NullPointerException at
Diffstat (limited to 'src/com/android/launcher2')
-rw-r--r--src/com/android/launcher2/AllAppsView.java23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index 336f117d1..f8008816f 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -1265,24 +1265,23 @@ public class AllAppsView extends RSSurfaceView
* Send the apps list structures to RS.
*/
private void saveAppsList() {
- mRS.contextBindRootScript(null);
+ if (mScript != null) { // this happens when we init it
+ mRS.contextBindRootScript(null);
- mAllocIconIds.data(mIconIds);
- mAllocLabelIds.data(mLabelIds);
+ mAllocIconIds.data(mIconIds);
+ mAllocLabelIds.data(mLabelIds);
- if (mScript != null) { // this happens when we init it
mScript.bindAllocation(mAllocIconIds, Defines.ALLOC_ICON_IDS);
mScript.bindAllocation(mAllocLabelIds, Defines.ALLOC_LABEL_IDS);
- }
- mState.save();
+ mState.save();
+
+ // Note: mScript may be null if we haven't initialized it yet.
+ // In that case, this is a no-op.
+ if (mInvokeResetWAR != null) {
+ mInvokeResetWAR.execute();
+ }
- // Note: mScript may be null if we haven't initialized it yet.
- // In that case, this is a no-op.
- if (mInvokeResetWAR != null) {
- mInvokeResetWAR.execute();
- }
- if (mScript != null) {
mRS.contextBindRootScript(mScript);
}
}