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

Commit 7c36a685 authored by Mady Mellor's avatar Mady Mellor
Browse files

Enable stylus scale by default for apps targeting MNC+

Bug: 20467919
Change-Id: Icadd45c8031e362d8101419c298133d59165939b
parent ce510d5f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -212,9 +212,14 @@ public class ScaleGestureDetector {
        mMinSpan = res.getDimensionPixelSize(com.android.internal.R.dimen.config_minScalingSpan);
        mHandler = handler;
        // Quick scale is enabled by default after JB_MR2
        if (context.getApplicationInfo().targetSdkVersion > Build.VERSION_CODES.JELLY_BEAN_MR2) {
        final int targetSdkVersion = context.getApplicationInfo().targetSdkVersion;
        if (targetSdkVersion > Build.VERSION_CODES.JELLY_BEAN_MR2) {
            setQuickScaleEnabled(true);
        }
        // Stylus scale is enabled by default after LOLLIPOP_MR1
        if (targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1) {
            setStylusScaleEnabled(true);
        }
    }

    /**