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

Commit d90413a7 authored by Philip Quinn's avatar Philip Quinn
Browse files

Use a subclass of GestureDetector in SystemGesturesPointerEventListener.

Bug: 111480215
Test: statsd_testdrive 177

Change-Id: Ie88d8b55d97a0343fb6c874883a0d4e7cbdff8b3
parent f195c98a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -83,7 +83,12 @@ class SystemGesturesPointerEventListener implements PointerEventListener {
    }

    public void systemReady() {
        mGestureDetector = new GestureDetector(mContext, new FlingGestureDetector(), mHandler);
        // GestureDetector records statistics about gesture classification events to inform gesture
        // usage trends. SystemGesturesPointerEventListener creates a lot of noise in these
        // statistics because it passes every touch event though a GestureDetector. By creating an
        // anonymous subclass of GestureDetector, these statistics will be recorded with a unique
        // source name that can be filtered.
        mGestureDetector = new GestureDetector(mContext, new FlingGestureDetector(), mHandler) {};
    }

    @Override