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

Commit 67867790 authored by Selim Cinek's avatar Selim Cinek
Browse files

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
parent 8ae0cfe3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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!