Fixes #1956185. Restores the gesture when changing orientation when creating a shortcut.

This commit is contained in:
Romain Guy
2009-07-01 16:39:46 -07:00
parent 98d0165c88
commit f38b3d5703
+4 -1
View File
@@ -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);