diff --git a/app/src/common/shared/org/mozilla/vrbrowser/input/MotionEventGenerator.java b/app/src/common/shared/org/mozilla/vrbrowser/input/MotionEventGenerator.java index cc6952ac2..31602561d 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/input/MotionEventGenerator.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/input/MotionEventGenerator.java @@ -41,9 +41,10 @@ static class Device { private static SparseArray devices = new SparseArray<>(); + private static void generateEvent(Widget aWidget, Device aDevice, int aAction, boolean aGeneric) { MotionEvent event = MotionEvent.obtain( - /*mDownTime*/ aDevice.mDownTime, + /*mDownTime*/ 0, // aDevice.mDownTime, /*eventTime*/ SystemClock.uptimeMillis(), /*action*/ aAction, /*pointerCount*/ 1, @@ -53,7 +54,7 @@ private static void generateEvent(Widget aWidget, Device aDevice, int aAction, b /*buttonState*/ 0, /*xPrecision*/ 0, /*yPrecision*/ 0, - /*deviceId*/ aDevice.mDevice, + /*deviceId*/ 0, // aDevice.mDevice, /*edgeFlags*/ 0, /*source*/ InputDevice.SOURCE_TOUCHSCREEN, /*flags*/ 0);