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

Commit b6e52a7f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Send valid displayId and eventTime for edge back event"

parents e2ab932b 3ad6390b
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);
    }