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

Skip to content
Commit 07be125b authored by Steve McKay's avatar Steve McKay
Browse files

Decompose ListeningGestureDetector.

The class was a GestureDetector subclass responsible for
- receiving MotionEvents from Recycler view
- passing them off to mouse/touch specific code (that in turn
    where relaying events to band, gesture, and drag helpers)
- then finally delivering events to parent gesture detector.

This change decomposes this arrangement into:

A dedicated TouchEventRouter that is reponsible for:
- delivery of events to injected mouse/touch deligates.
- delivery of events to an injected gesture detector.

Migrate Band/Gesture specific logic into the respective helper classes.

Renamed InputEventDispatcher to GestureRouter to make role
more immediately obvious.
I can't seem to convince git that it's a rename, though.

Bug: 64847011
Test: Passing.
Change-Id: Icf671cb4ca44a0aff11bb3547342de0063b2f403
parent 1fdd34b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment