Skip to content

Commit 8a8244e

Browse files
AlexPMS22
authored andcommitted
Navbar: Switch gesture navbar to new navigation bar key event source
- Fixes issue with back gesture not working while using custom key policy Change-Id: Ie10da1b8acfc7e5b87a6e9c107e6666eca1aa0d1 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent d53ffd7 commit 8a8244e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/SystemUI/src/com/android/systemui/statusbar/phone/EdgeBackGestureHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ private void sendEvent(int action, int code, int flags) {
574574
final KeyEvent ev = new KeyEvent(when, when, action, code, 0 /* repeat */,
575575
0 /* metaState */, KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /* scancode */,
576576
flags | KeyEvent.FLAG_FROM_SYSTEM | KeyEvent.FLAG_VIRTUAL_HARD_KEY,
577-
InputDevice.SOURCE_KEYBOARD);
577+
InputDevice.SOURCE_NAVIGATION_BAR);
578578

579579
// Bubble controller will give us a valid display id if it should get the back event
580580
BubbleController bubbleController = Dependency.get(BubbleController.class);

0 commit comments

Comments
 (0)