diff options
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 26a739dca..afacfc8f3 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -3980,7 +3980,8 @@ public class Launcher extends Activity } if (mSavedState != null) { if (!mWorkspace.hasFocus()) { - mWorkspace.getChildAt(mWorkspace.getCurrentPage()).requestFocus(); + View v = mWorkspace.getChildAt(mWorkspace.getCurrentPage()); + if (v != null) v.requestFocus(); } mSavedState = null; |