am c665672a: Fix handling of the back key on Home in the gestures panel.

Merge commit 'c665672acb7b907aefcc8b07452f5d06824a3469'

* commit 'c665672acb7b907aefcc8b07452f5d06824a3469':
  Fix handling of the back key on Home in the gestures panel.
This commit is contained in:
Romain Guy 2009-06-17 15:39:00 -07:00 committed by The Android Open Source Project
commit 0e7886b196
1 changed files with 4 additions and 1 deletions

View File

@ -37,8 +37,11 @@ public class GesturesPanel extends RelativeLayout {
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK &&
event.getAction() == KeyEvent.ACTION_DOWN) {
((Launcher) mContext).hideGesturesPanel();
return true;
}