diff options
| author | 2022-10-24 16:26:16 +0800 | |
|---|---|---|
| committer | 2022-10-24 16:26:16 +0800 | |
| commit | 4bf6fd09624b3a79a89d19e468e46ca669cb2314 (patch) | |
| tree | 97004e2148c4658201f346f0f2d51012522c96b7 | |
| parent | df86b40c331644cb76815d51fa8e1ef39528ef02 (diff) | |
Default enable BackAnimationController
There should create instance in WMShellBaseModule.
Also remove some un-used field.
Bug: 238475284
Test: build/flash, verify back gesture can work.
Change-Id: Iedbd9731f79ced1c05836de27928f7858ae97368
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java index db5de431cced..dc5b9a1eeaeb 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/back/BackAnimationController.java @@ -72,13 +72,9 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont private static final String TAG = "BackAnimationController"; private static final int SETTING_VALUE_OFF = 0; private static final int SETTING_VALUE_ON = 1; - private static final String PREDICTIVE_BACK_PROGRESS_THRESHOLD_PROP = - "persist.wm.debug.predictive_back_progress_threshold"; public static final boolean IS_ENABLED = SystemProperties.getInt("persist.wm.debug.predictive_back", - SETTING_VALUE_ON) != SETTING_VALUE_ON; - private static final int PROGRESS_THRESHOLD = SystemProperties - .getInt(PREDICTIVE_BACK_PROGRESS_THRESHOLD_PROP, -1); + SETTING_VALUE_ON) == SETTING_VALUE_ON; /** Flag for U animation features */ public static boolean IS_U_ANIMATION_ENABLED = SystemProperties.getInt("persist.wm.debug.predictive_back_anim", |