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

Skip to content
Commit 7ac691e1 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Calculate predictions based on PointerCoords data

Previously, the predictions were based on the MotionEvent's getRawX,
getRawY APIs, which do some additional processing on the values of the
PointerCoords.

That caused the prediction API to work correctly in portrait mode, but
not in landscape, because the transform was getting missed.

Now, we will use the PointerCoords directly. Confirmed that this fixes
the issue in both portrait and landscape modes.

Bug: 210158587
Test: m MotionPrediction && adb install $ANDROID_PRODUCT_OUT/system/app/MotionPrediction/MotionPrediction.apk
Change-Id: Iba0667226d802ab344ec689c654f9cfbf073b622
parent 28ce35e5
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