diff options
author | Joe Onorato <joeo@android.com> | 2010-02-22 15:07:16 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-02-22 15:07:16 -0800 |
commit | 983e5f2cd3754b09864ea41f8f71f8d19c2c23eb (patch) | |
tree | 95104f4ab0db6d38afacaf6ca904c4435c2d099a /src | |
parent | deb98afe40cd1b6f1c042492e56b48b29320a134 (diff) | |
parent | 96ef9f68a43604c99cd18537a6c8e9d1c5049c31 (diff) | |
download | android_packages_apps_Trebuchet-983e5f2cd3754b09864ea41f8f71f8d19c2c23eb.tar.gz android_packages_apps_Trebuchet-983e5f2cd3754b09864ea41f8f71f8d19c2c23eb.tar.bz2 android_packages_apps_Trebuchet-983e5f2cd3754b09864ea41f8f71f8d19c2c23eb.zip |
am 96ef9f68: am bf5350db: fix 2460740 com.android.launcher2: java.lang.NullPointerException at com.android.launcher2.AllAppsView.saveAppsList(AllAppsView.java:1270)
Merge commit '96ef9f68a43604c99cd18537a6c8e9d1c5049c31'
* commit '96ef9f68a43604c99cd18537a6c8e9d1c5049c31':
fix 2460740 com.android.launcher2: java.lang.NullPointerException at
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/AllAppsView.java | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index d3503de27..6a6db7da6 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -1266,24 +1266,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); } } |