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

Commit d7d9fb32 authored by Shan Huang's avatar Shan Huang
Browse files

Revert "Turn off predictive back"

This reverts commit ad89a821.

Reason for revert: b/222170518 was unrelated to gesture back, and is now fixed.
Test: m -j. Test back behavior throughout system.

Change-Id: Ia27c7ea97416831355e1949ec6874de570b52108
parent d8c04441
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher {
    private static final String TAG = "WindowOnBackDispatcher";
    private static final String BACK_PREDICTABILITY_PROP = "persist.debug.back_predictability";
    private static final boolean IS_BACK_PREDICTABILITY_ENABLED = SystemProperties
            .getInt(BACK_PREDICTABILITY_PROP, 0) > 0;
            .getInt(BACK_PREDICTABILITY_PROP, 1) > 0;

    /** Convenience hashmap to quickly decide if a callback has been added. */
    private final HashMap<OnBackInvokedCallback, Integer> mAllCallbacks = new HashMap<>();
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont

    private static final String BACK_PREDICTABILITY_PROP = "persist.debug.back_predictability";
    public static final boolean IS_ENABLED = SystemProperties
            .getInt(BACK_PREDICTABILITY_PROP, 0) > 0;
            .getInt(BACK_PREDICTABILITY_PROP, 1) > 0;
    private static final String BACK_PREDICTABILITY_PROGRESS_THRESHOLD_PROP =
            "persist.debug.back_predictability_progress_threshold";
    private static final int PROGRESS_THRESHOLD = SystemProperties
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class BackNavigationController {
     * Returns true if the back predictability feature is enabled
     */
    static boolean isEnabled() {
        return SystemProperties.getInt(BACK_PREDICTABILITY_PROP, 0) > 0;
        return SystemProperties.getInt(BACK_PREDICTABILITY_PROP, 1) > 0;
    }

    static boolean isScreenshotEnabled() {