summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorShan Huang <shanh@google.com>2022-03-14 17:08:22 +0000
committerShan Huang <shanh@google.com>2022-03-14 17:09:00 +0000
commitd7d9fb32d7fb8d8c8bef5e817286b1a55b2cc2da (patch)
tree27e8bf7ff07d46ebfc0ed7b69536464e7780546b /core/java/android
parentd8c04441cea5d0d45a4cf26a7bac38c349c4e115 (diff)
Revert "Turn off predictive back"
This reverts commit ad89a821450e9a61bd85225fbcf921f8ca51e94b. 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
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/window/WindowOnBackInvokedDispatcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/window/WindowOnBackInvokedDispatcher.java b/core/java/android/window/WindowOnBackInvokedDispatcher.java
index 5dbb551da681..d046cefee5f7 100644
--- a/core/java/android/window/WindowOnBackInvokedDispatcher.java
+++ b/core/java/android/window/WindowOnBackInvokedDispatcher.java
@@ -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<>();