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

Commit 0ec80cdb authored by Cam Bickel's avatar Cam Bickel
Browse files

Cleanup flag "pinch_zoom_zero_min_span"

Bug: b/295327792
Test: presubmit
Flag: EXEMPT flag cleanup
Change-Id: I0872d78ed5cc77572841b7d1c8b30808a4148eba
parent 6493c50c
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ import android.view.ScaleGestureDetector;
import android.view.ViewConfiguration;

import com.android.internal.R;
import com.android.server.accessibility.Flags;

/**
 * Handles the behavior while receiving scaling and panning gestures if it's enabled.
@@ -73,13 +72,9 @@ class PanningScalingHandler extends
        mMaxScale = maxScale;
        mMinScale = minScale;
        mBlockScroll = blockScroll;
        if (Flags.pinchZoomZeroMinSpan()) {
        mScaleGestureDetector = new ScaleGestureDetector(context,
                ViewConfiguration.get(context).getScaledTouchSlop() * 2,
                /* minSpan= */ 0, Handler.getMain(), this);
        } else {
            mScaleGestureDetector = new ScaleGestureDetector(context, this, Handler.getMain());
        }
        mScrollGestureDetector = new GestureDetector(context, this, Handler.getMain());
        mScaleGestureDetector.setQuickScaleEnabled(false);
        mMagnificationDelegate = magnificationDelegate;