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

Commit 156cc5b1 authored by Cutter Coryell's avatar Cutter Coryell Committed by Android (Google) Code Review
Browse files

Merge "Add boolean controlling ML in system back gesture" into main

parents 0ee9bbad ea9181eb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1002,4 +1002,7 @@
        <item>com.android.switchaccess.SwitchAccessService</item>
        <item>com.google.android.apps.accessibility.voiceaccess.JustSpeakService</item>
    </string-array>

    <!--  Whether to use a machine learning model for back gesture falsing. -->
    <bool name="config_useBackGestureML">true</bool>
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -758,7 +758,8 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack
    }

    private void updateMLModelState() {
        boolean newState = mIsGestureHandlingEnabled && DeviceConfig.getBoolean(
        boolean newState = mIsGestureHandlingEnabled && mContext.getResources().getBoolean(
                R.bool.config_useBackGestureML) && DeviceConfig.getBoolean(
                DeviceConfig.NAMESPACE_SYSTEMUI,
                SystemUiDeviceConfigFlags.USE_BACK_GESTURE_ML_MODEL, false);