summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-07-17 01:24:40 -0700
committerRomain Guy <romainguy@android.com>2009-07-17 01:24:40 -0700
commitf984894964281fef48b97bc0bc68a17feb244c25 (patch)
treed7e3359c8e375c179229f9fe259fde80f505c3af
parent6b3f51d373f19711a7fac44f2f6df9dc89110eb1 (diff)
downloadLauncher-f984894964281fef48b97bc0bc68a17feb244c25.tar.gz
Fix back button in gestures panel.
-rw-r--r--src/com/android/launcher/GesturesPanel.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/com/android/launcher/GesturesPanel.java b/src/com/android/launcher/GesturesPanel.java
index 2d8647d..c0fce47 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;
}
}