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

Commit 4394dcfb authored by Shawn Lee's avatar Shawn Lee
Browse files

Fixed battery percentage textView not resizing to fit estimate

Adding honorRequest flag to QQS->QS MotionLayout transition
to allow layout to be remeasured when longer text is set during
the transition.

Bug: 282044659
Test: visually confirmed QQS->QS transition works correctly when on battery
Change-Id: Id719413ff3dab8f7c37d9e9cc18000ac7eff406c
parent b3ea5063
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -16,12 +16,14 @@
  -->
<MotionScene
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:motion="http://schemas.android.com/apk/res-auto">

    <Transition
        android:id="@+id/header_transition"
        app:constraintSetEnd="@id/qs_header_constraint"
        app:constraintSetStart="@id/qqs_header_constraint">
        app:constraintSetStart="@id/qqs_header_constraint"
        motion:layoutDuringTransition="honorRequest">
        <KeyFrameSet>
            <!-- These positions are to prevent visual movement of @id/date -->
            <KeyPosition