Enable persist.wm.debug.predictive_back_anim by default.

With this change predictive system navigation animations will be enabled
when the "Predictive Back Animation" developer option is enabled
(default off).

Progress events will also be dispatched to apps that are registering
OnBackAnimationCallbacks. This allows SysUI & Launcher animations to be
enabled in teamfood.

Bug: 238475924
Test: Turn on "Predictive back Animation" dev option. Make sure sys nav
anims show up in Settings.
Test: Turn on SysUI teamfood flags. Make sure SysUI back animations show
up.

Change-Id: I7566beb86f1f1303e7de3f1fe8acf711c919644c
This commit is contained in:
Shan Huang
2023-01-26 16:39:34 -08:00
parent 4c71a7841c
commit 37bce03ce4
2 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ public class BackAnimationController implements RemoteCallable<BackAnimationCont
/** Flag for U animation features */
public static boolean IS_U_ANIMATION_ENABLED =
SystemProperties.getInt("persist.wm.debug.predictive_back_anim",
SETTING_VALUE_OFF) == SETTING_VALUE_ON;
SETTING_VALUE_ON) == SETTING_VALUE_ON;
/** Predictive back animation developer option */
private final AtomicBoolean mEnableAnimations = new AtomicBoolean(false);
// TODO (b/241808055) Find a appropriate time to remove during refactor

View File

@@ -467,7 +467,7 @@ object Flags {
@Keep
@JvmField
val WM_ENABLE_PREDICTIVE_BACK_ANIM =
sysPropBooleanFlag(1201, "persist.wm.debug.predictive_back_anim", default = false)
sysPropBooleanFlag(1201, "persist.wm.debug.predictive_back_anim", default = true)
@Keep
@JvmField
@@ -500,7 +500,7 @@ object Flags {
// TODO(b/238475428): Tracking Bug
@JvmField
val WM_SHADE_ANIMATE_BACK_GESTURE =
unreleasedFlag(1208, "persist.wm.debug.shade_animate_back_gesture", teamfood = true)
unreleasedFlag(1208, "persist.wm.debug.shade_animate_back_gesture", teamfood = false)
// TODO(b/265639042): Tracking Bug
@JvmField