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

Commit 867b901c authored by Sumir Kataria's avatar Sumir Kataria
Browse files

Don't allow reflection on ScaleGestureDetector#mSpanSlop.

This is a value provided by ViewConfiguration that is standardized
across the device.  There are two problems in changing this:
  1. inconsistent behavior with the rest of the uses
  2. modifying this would open the door to modifying all slops,
     which is infeasible and has no good API story

Bug: 123769434
Test: No API or behavior changes
Change-Id: I30bc9d065be8633752a67bd0faa9eafe1678e843
parent 912ca402
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ public class ScaleGestureDetector {
    private long mCurrTime;
    private long mPrevTime;
    private boolean mInProgress;
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 123768938)
    private int mSpanSlop;
    @UnsupportedAppUsage
    private int mMinSpan;