Loading
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