Migrate layout transition flag to DesktopModeFlag version.
Flag: com.android.window.flags.enable_taskbar_recents_layout_transition Bug: 343521765 Test: go/testedequals Change-Id: I175e428240bc52689efe0f6e4457620ac2efdbb5
This commit is contained in:
@@ -19,13 +19,13 @@ import static android.animation.LayoutTransition.APPEARING;
|
||||
import static android.animation.LayoutTransition.CHANGE_APPEARING;
|
||||
import static android.animation.LayoutTransition.CHANGE_DISAPPEARING;
|
||||
import static android.animation.LayoutTransition.DISAPPEARING;
|
||||
import static android.window.DesktopModeFlags.ENABLE_TASKBAR_RECENTS_LAYOUT_TRANSITION;
|
||||
|
||||
import static com.android.app.animation.Interpolators.EMPHASIZED;
|
||||
import static com.android.app.animation.Interpolators.FINAL_FRAME;
|
||||
import static com.android.app.animation.Interpolators.LINEAR;
|
||||
import static com.android.launcher3.Flags.enableScalingRevealHomeAnimation;
|
||||
import static com.android.launcher3.Flags.taskbarOverflow;
|
||||
import static com.android.launcher3.Flags.taskbarRecentsLayoutTransition;
|
||||
import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY;
|
||||
import static com.android.launcher3.LauncherAnimUtils.VIEW_ALPHA;
|
||||
import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_X;
|
||||
@@ -189,7 +189,7 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
|
||||
private final View.OnLayoutChangeListener mTaskbarViewLayoutChangeListener =
|
||||
(v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> {
|
||||
if (!taskbarRecentsLayoutTransition()) {
|
||||
if (!ENABLE_TASKBAR_RECENTS_LAYOUT_TRANSITION.isTrue()) {
|
||||
// update shiftX is handled with the animation at the end of the method
|
||||
updateTaskbarIconTranslationXForPinning(/* updateShiftXForBubbleBar = */ false);
|
||||
}
|
||||
@@ -1206,7 +1206,8 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
/** Called when there's a change in running apps to update the UI. */
|
||||
public void commitRunningAppsToUI() {
|
||||
mModelCallbacks.commitRunningAppsToUI();
|
||||
if (taskbarRecentsLayoutTransition() && mTaskbarView.getLayoutTransition() == null) {
|
||||
if (ENABLE_TASKBAR_RECENTS_LAYOUT_TRANSITION.isTrue()
|
||||
&& mTaskbarView.getLayoutTransition() == null) {
|
||||
// Set up after the first commit so that the initial recents do not animate (janky).
|
||||
mTaskbarView.setLayoutTransition(createLayoutTransitionForRunningApps());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user