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

Commit 605556d5 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "Remove exception for injecting pointer event from sendTrackballEventSync" into tm-dev

parents 7038aedd be382c32
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1207,11 +1207,6 @@ public class Instrumentation {
     */
    public void sendTrackballEventSync(MotionEvent event) {
        validateNotAppThread();
        if (event.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) {
            throw new IllegalArgumentException(
                    "Cannot inject pointer events from sendTrackballEventSync()."
                            + " Use sendPointerSync() to inject pointer events.");
        }
        if (!event.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) {
            event.setSource(InputDevice.SOURCE_TRACKBALL);
        }