diff options
| author | 2023-06-16 10:54:52 -0700 | |
|---|---|---|
| committer | 2023-06-16 10:54:52 -0700 | |
| commit | 4394dcfb3060bd1fb0b28a3df4cee21116f815a6 (patch) | |
| tree | 56600b67611ee7c0f86fdfdd7f8ace829d80094a | |
| parent | b3ea50636a8c0429f67b64aec383d0da06889a1a (diff) | |
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
| -rw-r--r-- | packages/SystemUI/res/xml/combined_qs_header_scene.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/res/xml/combined_qs_header_scene.xml b/packages/SystemUI/res/xml/combined_qs_header_scene.xml index 38c164023315..8512f6fada43 100644 --- a/packages/SystemUI/res/xml/combined_qs_header_scene.xml +++ b/packages/SystemUI/res/xml/combined_qs_header_scene.xml @@ -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 |