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

Commit faf73ec4 authored by Luca Zuccarini's avatar Luca Zuccarini
Browse files

Clean up aconfig flag animation_library_delay_leash_cleanup.

Fix: 433676812
Flag: EXEMPT flag cleanup
Test: EXEMPT flag cleanup
Change-Id: Ic5d988d0ef8f3239108d85e1dcb79a6cead79b18
parent 1d6f45af
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -1932,16 +1932,6 @@ flag {
    bug: "430582532"
}

flag {
    name: "animation_library_delay_leash_cleanup"
    namespace: "systemui"
    description: "Clean up the transition leash with a delay to ensure that the finish callback happens first, avoiding flickers"
    bug: "356065603"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
   name: "new_dozing_keyguard_states"
   namespace: "systemui"
+9 −13
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ import androidx.annotation.UiThread
import com.android.app.animation.Interpolators
import com.android.internal.annotations.VisibleForTesting
import com.android.internal.policy.ScreenDecorationsUtils
import com.android.systemui.Flags.animationLibraryDelayLeashCleanup
import com.android.systemui.Flags.animationLibraryShellMigration
import com.android.systemui.Flags.instantHideShade
import com.android.systemui.Flags.moveTransitionAnimationLayer
@@ -2368,18 +2367,15 @@ constructor(
                                    )
                                }
                            }
                            if (animationLibraryDelayLeashCleanup()) {

                            // This cleanup is not time-sensitive as it is just to avoid leaking
                                // leashes. By delaying it, we make (reasonably) sure that the
                                // finish callback above is executed before the reparent
                                // transaction, which avoids flaky flickers. Unfortunately both are
                                // async, so we need to resort to this hacky solution. Fortunately
                                // none of this will be necessary as soon as b/397180418 is done.
                            // leashes. By delaying it, we make (reasonably) sure that the finish
                            // callback above is executed before the reparent transaction, which
                            // avoids flaky flickers. Unfortunately both are async, so we need to
                            // resort to this hacky solution. Fortunately none of this will be
                            // necessary as soon as b/397180418 is done.
                            Handler(Looper.getMainLooper())
                                .postDelayed(cleanUpTransitionLeash, 500L)
                            } else {
                                cleanUpTransitionLeash()
                            }
                        }

                        if (DEBUG_TRANSITION_ANIMATION) {