mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Merge "Add a no recent tasks message to the keyboard quick switch view" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b9f04842b5
@@ -169,7 +169,7 @@ public class KeyboardQuickSwitchViewController {
|
||||
|
||||
class ViewCallbacks {
|
||||
|
||||
boolean onKeyUp(int keyCode, KeyEvent event, boolean isRTL) {
|
||||
boolean onKeyUp(int keyCode, KeyEvent event, boolean isRTL, boolean allowTraversal) {
|
||||
if (keyCode != KeyEvent.KEYCODE_TAB
|
||||
&& keyCode != KeyEvent.KEYCODE_DPAD_RIGHT
|
||||
&& keyCode != KeyEvent.KEYCODE_DPAD_LEFT
|
||||
@@ -181,6 +181,9 @@ public class KeyboardQuickSwitchViewController {
|
||||
closeQuickSwitchView(true);
|
||||
return true;
|
||||
}
|
||||
if (!allowTraversal) {
|
||||
return false;
|
||||
}
|
||||
boolean traverseBackwards = (keyCode == KeyEvent.KEYCODE_TAB && event.isShiftPressed())
|
||||
|| (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT && !isRTL)
|
||||
|| (keyCode == KeyEvent.KEYCODE_DPAD_LEFT && isRTL);
|
||||
|
||||
Reference in New Issue
Block a user