Loading core/java/com/android/internal/widget/PointerLocationView.java +3 −2 Original line number Diff line number Diff line Loading @@ -549,8 +549,9 @@ public class PointerLocationView extends View implements InputDeviceListener { final PointerState ps = mPointers.get(id); ps.mCurDown = true; ps.mHasBoundingBox = (InputDevice.getDevice(event.getDeviceId()). getMotionRange(MotionEvent.AXIS_GENERIC_1) != null); InputDevice device = InputDevice.getDevice(event.getDeviceId()); ps.mHasBoundingBox = device != null && device.getMotionRange(MotionEvent.AXIS_GENERIC_1) != null; } final int NI = event.getPointerCount(); Loading Loading
core/java/com/android/internal/widget/PointerLocationView.java +3 −2 Original line number Diff line number Diff line Loading @@ -549,8 +549,9 @@ public class PointerLocationView extends View implements InputDeviceListener { final PointerState ps = mPointers.get(id); ps.mCurDown = true; ps.mHasBoundingBox = (InputDevice.getDevice(event.getDeviceId()). getMotionRange(MotionEvent.AXIS_GENERIC_1) != null); InputDevice device = InputDevice.getDevice(event.getDeviceId()); ps.mHasBoundingBox = device != null && device.getMotionRange(MotionEvent.AXIS_GENERIC_1) != null; } final int NI = event.getPointerCount(); Loading