From 4394dcfb3060bd1fb0b28a3df4cee21116f815a6 Mon Sep 17 00:00:00 2001 From: Shawn Lee Date: Fri, 16 Jun 2023 10:54:52 -0700 Subject: [PATCH] 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 --- packages/SystemUI/res/xml/combined_qs_header_scene.xml | 6 ++++-- 1 file 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 38c1640233150..8512f6fada43d 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 @@ --> + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:motion="http://schemas.android.com/apk/res-auto"> + app:constraintSetStart="@id/qqs_header_constraint" + motion:layoutDuringTransition="honorRequest">