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

Commit a1913301 authored by Kurt Partridge's avatar Kurt Partridge Committed by Android (Google) Code Review
Browse files

Merge "Avoid duplicate MotionEvents"

parents b903f103 1bf47582
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1189,10 +1189,12 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
                if (ENABLE_USABILITY_STUDY_LOG) {
                    writeUsabilityStudyLog(me, action, eventTime, i, pointerId, px, py);
                }
                if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) {
                    ResearchLogger.mainKeyboardView_processMotionEvent(
                            me, action, eventTime, i, pointerId, px, py);
                }
                // TODO: This seems to be no longer necessary, and confusing because it leads to
                // duplicate MotionEvents being recorded.
                // if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) {
                //     ResearchLogger.mainKeyboardView_processMotionEvent(
                //             me, action, eventTime, i, pointerId, px, py);
                // }
            }
        } else {
            final PointerTracker tracker = PointerTracker.getPointerTracker(id, this);