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

Commit c9201b07 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Adding check to ensure device exists before setting pointer type."

parents 7219795f df42455b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -160,7 +160,10 @@ public class RecentsViewTouchHandler {
        EventBus.getDefault().send(new DragStartInitializeDropTargetsEvent(event.task,
                event.taskView, this));
        if (mDeviceId != -1) {
            InputDevice.getDevice(mDeviceId).setPointerType(PointerIcon.TYPE_GRABBING);
            InputDevice device = InputDevice.getDevice(mDeviceId);
            if (device != null) {
                device.setPointerType(PointerIcon.TYPE_GRABBING);
            }
        }
    }