From f38b3d57033cf416454b3b9d019756c8bca03648 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 1 Jul 2009 16:39:46 -0700 Subject: Fixes #1956185. Restores the gesture when changing orientation when creating a shortcut. --- src/com/android/launcher/Launcher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/launcher/Launcher.java b/src/com/android/launcher/Launcher.java index d5c738c75..9a112b8aa 100644 --- a/src/com/android/launcher/Launcher.java +++ b/src/com/android/launcher/Launcher.java @@ -577,7 +577,10 @@ public final class Launcher extends Activity implements View.OnClickListener, On boolean gesturesShowing = savedState.getBoolean(RUNTIME_STATE_GESTURES_PANEL, false); if (gesturesShowing) { - final Gesture gesture = (Gesture) savedState.get(RUNTIME_STATE_GESTURES_PANEL_GESTURE); + if (mCurrentGesture == null) { + mCurrentGesture = (Gesture) savedState.get(RUNTIME_STATE_GESTURES_PANEL_GESTURE); + } + final Gesture gesture = mCurrentGesture; mWorkspace.post(new Runnable() { public void run() { showGesturesPanel(false); -- cgit v1.2.3