From 67867790f33717cadcb7b7593238417a4ffb9fba Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Thu, 14 May 2020 21:15:04 -0700 Subject: [PATCH] Fixed an issue where the result wasn't set properly Bug: 154137987 Test: add media notificaiton, observe right measuring from the start Change-Id: Ia7cf7675c3b41e113811284b622a40967ed59238 --- .../SystemUI/src/com/android/systemui/media/MediaViewManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/media/MediaViewManager.kt b/packages/SystemUI/src/com/android/systemui/media/MediaViewManager.kt index 9c92b0a27c03e..a6a9b36a6d609 100644 --- a/packages/SystemUI/src/com/android/systemui/media/MediaViewManager.kt +++ b/packages/SystemUI/src/com/android/systemui/media/MediaViewManager.kt @@ -289,7 +289,7 @@ class MediaViewManager @Inject constructor( firstPlayer.measure(input) // Relayouting is necessary in motionlayout to obtain its size properly .... it.layout(0, 0, it.measuredWidth, it.measuredHeight) - val result = MeasurementOutput(it.measuredWidth, it.measuredHeight) + result = MeasurementOutput(it.measuredWidth, it.measuredHeight) it.progress = previousProgress if (desiredState != null) { // remeasure it to the old size again!