diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/MediaControlViewBinder.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/MediaControlViewBinder.kt b/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/MediaControlViewBinder.kt index 3c25e6205b05..6373feda9c9b 100644 --- a/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/MediaControlViewBinder.kt +++ b/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/MediaControlViewBinder.kt @@ -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( |