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

Commit b5402f22 authored by Jorge Gil's avatar Jorge Gil
Browse files

Put app handle color animation behind its own flag

Flag: com.android.window.flags.reenable_app_handle_color_animations
Bug: 441497981
Test: open fullscreen task, see color changes without animation
Change-Id: If0aa2b296aea4769852e99e1bcadbb11e7e63248
parent 2525179c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -245,6 +245,8 @@ public enum DesktopExperienceFlags {
            Flags.FLAG_ENABLE_PROJECTED_DISPLAY_DESKTOP_MODE),
    ENABLE_REENABLE_APP_HANDLE_ANIMATIONS(Flags::reenableAppHandleAnimations,
            false, Flags.FLAG_REENABLE_APP_HANDLE_ANIMATIONS),
    ENABLE_REENABLE_APP_HANDLE_COLOR_ANIMATIONS(Flags::reenableAppHandleColorAnimations,
            false, Flags.FLAG_REENABLE_APP_HANDLE_COLOR_ANIMATIONS),
    ENABLE_REJECT_HOME_TRANSITION(
            Flags::enableRejectHomeTransition, true,
            Flags.FLAG_ENABLE_REJECT_HOME_TRANSITION),
+10 −0
Original line number Diff line number Diff line
@@ -1747,6 +1747,16 @@ flag {
    }
}

flag {
    name: "reenable_app_handle_color_animations"
    namespace: "lse_desktop_experience"
    description: "Re-enables the app handle color animations"
    bug: "441497981"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    name: "remove_desk_on_last_task_removal"
    namespace: "lse_desktop_experience"
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ class AppHandleViewHolder(
        isCaptionVisible: Boolean,
    ) {
        setVisibility(isCaptionVisible)
        if (DesktopExperienceFlags.ENABLE_REENABLE_APP_HANDLE_ANIMATIONS.isTrue) {
        if (DesktopExperienceFlags.ENABLE_REENABLE_APP_HANDLE_COLOR_ANIMATIONS.isTrue) {
            animator.animateColorChange(getCaptionHandleBarColor(taskInfo))
        } else {
            captionHandle.imageTintList = ColorStateList.valueOf(getCaptionHandleBarColor(taskInfo))