Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ad6390b authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Send valid displayId and eventTime for edge back event

Display ID is set to invalid and downtime is same as
event time for ACTION_UP in gesture nav. Use default
displayId if bubbles displayId is invalid.

Bug: 156718868
Change-Id: Ia20b749816323d53a6f5901ab475d35e02013324
parent 5937ba4b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -614,8 +614,10 @@ public class EdgeBackGestureHandler extends CurrentUserTracker implements Displa
        // Bubble controller will give us a valid display id if it should get the back event
        BubbleController bubbleController = Dependency.get(BubbleController.class);
        int bubbleDisplayId = bubbleController.getExpandedDisplayId(mContext);
        if (code == KeyEvent.KEYCODE_BACK && bubbleDisplayId != INVALID_DISPLAY) {
        if (bubbleDisplayId != INVALID_DISPLAY) {
            ev.setDisplayId(bubbleDisplayId);
        } else {
            ev.setDisplayId(mContext.getDisplay().getDisplayId());
        }
        InputManager.getInstance().injectInputEvent(ev, InputManager.INJECT_INPUT_EVENT_MODE_ASYNC);
    }