Fix back button in gestures panel.
This commit is contained in:
parent
6b3f51d373
commit
f984894964
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue