Fix back button in gestures panel.

This commit is contained in:
Romain Guy 2009-07-17 01:24:40 -07:00
parent 6b3f51d373
commit f984894964
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;
}
}