mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Fix keyboard quick switch d-pad left/right traversal direction
Flag: ENABLE_KEYBOARD_QUICK_SWITCH Fixes: 284156698 Test: tried keyboard quick switching with d-pad left/right in rtl/ltr Change-Id: Idb7466b316cb7cbd9f592c5949d2c95c3278d85f
This commit is contained in:
@@ -185,8 +185,8 @@ public class KeyboardQuickSwitchViewController {
|
||||
return false;
|
||||
}
|
||||
boolean traverseBackwards = (keyCode == KeyEvent.KEYCODE_TAB && event.isShiftPressed())
|
||||
|| (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT && !isRTL)
|
||||
|| (keyCode == KeyEvent.KEYCODE_DPAD_LEFT && isRTL);
|
||||
|| (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT && isRTL)
|
||||
|| (keyCode == KeyEvent.KEYCODE_DPAD_LEFT && !isRTL);
|
||||
int taskCount = mControllerCallbacks.getTaskCount();
|
||||
int toIndex = mCurrentFocusIndex == -1
|
||||
// Focus the second-most recent app if possible
|
||||
|
||||
Reference in New Issue
Block a user