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:
commit
0e7886b196
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue