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

Commit 4775730e authored by Michael Mikhail's avatar Michael Mikhail
Browse files

[Flexiglass] refresh state before showing guts menu

Flag: com.android.systemui.scene_container
Fixes: 360121244
Test: Checked UI using different UMOs from different apps.
Change-Id: Ided8bbc30e0a72089f18f09d5e9d40d49517cd35
parent e2f22ecc
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -163,6 +163,13 @@ object MediaControlViewBinder {
        if (viewModel.playTurbulenceNoise) {
            viewController.setUpTurbulenceNoise()
        }

        // TODO: We don't need to refresh this state constantly, only if the state actually changed
        // to something which might impact the measurement
        // State refresh interferes with the translation animation, only run it if it's not running.
        if (!viewController.metadataAnimationHandler.isRunning) {
            viewController.refreshState()
        }
    }

    private fun bindOutputSwitcherModel(