From f984894964281fef48b97bc0bc68a17feb244c25 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 17 Jul 2009 01:24:40 -0700 Subject: [PATCH] Fix back button in gestures panel. --- src/com/android/launcher/GesturesPanel.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/com/android/launcher/GesturesPanel.java b/src/com/android/launcher/GesturesPanel.java index 2d8647d98f..c0fce472e8 100644 --- a/src/com/android/launcher/GesturesPanel.java +++ b/src/com/android/launcher/GesturesPanel.java @@ -56,14 +56,14 @@ public class GesturesPanel extends LinearLayout { return ((Launcher) mContext).getWorkspace().getRootView().dispatchKeyEvent(event); } - if (keyCode == KeyEvent.KEYCODE_BACK && - event.getAction() == KeyEvent.ACTION_DOWN) { - - ((Launcher) mContext).hideGesturesPanel(); - - return true; + if (keyCode == KeyEvent.KEYCODE_BACK) { + if (event.getAction() == KeyEvent.ACTION_DOWN) { + ((Launcher) mContext).hideGesturesPanel(); + return true; + } + } else { + return super.dispatchKeyEvent(event); } - - return super.dispatchKeyEvent(event); + return false; } }