am f9848949: Fix back button in gestures panel.

Merge commit 'f984894964281fef48b97bc0bc68a17feb244c25'

* commit 'f984894964281fef48b97bc0bc68a17feb244c25':
  Fix back button in gestures panel.
This commit is contained in:
Romain Guy 2009-07-17 13:58:18 -07:00 committed by Android Git Automerger
commit 4cae075e6e
1 changed files with 8 additions and 8 deletions

View File

@ -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;
}
}