commit | 878f086f754c26d096134e35c33483800585ad2b | [log] [tgz] |
---|---|---|
author | Joe Onorato <joeo@android.com> | Mon Mar 22 12:22:22 2010 -0400 |
committer | Joe Onorato <joeo@android.com> | Mon Mar 22 12:22:22 2010 -0400 |
tree | 6ef94c83404e947156db04b2863de02068b82718 | |
parent | 20e7a5665807f5a1ef294f6a271b6b15f69e34e4 [diff] [blame] |
Fix 2532504 - fix NPE in AllApps3D.onKeyDown. Change-Id: I8fba9b0b5217d630d84a6a260865d454db2bb046
diff --git a/src/com/android/launcher2/AllApps3D.java b/src/com/android/launcher2/AllApps3D.java index 5b17b10..8467b39 100644 --- a/src/com/android/launcher2/AllApps3D.java +++ b/src/com/android/launcher2/AllApps3D.java
@@ -809,8 +809,12 @@ } } + /** + * If sRollo is null, then we're not visible. This is also used to guard against + * sRollo being null. + */ public boolean isVisible() { - return mZoom > 0.001f; + return sRollo != null && mZoom > 0.001f; } public boolean isOpaque() {