summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Mikhail <michaelmikhil@google.com> 2022-10-24 20:17:33 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-10-24 20:17:33 +0000
commit90341eccb57067b53ee2ffb639c6841a1082fe8c (patch)
tree913a1297f22db265fa12c70734c345d1583051c0
parent94e7d278d61f9417a2630f49ee1d5d81856759bd (diff)
parentfd544fa64a8997cc2d937246488955bb062d2ed0 (diff)
Merge "Update chipbar text view in new events" into tm-qpr-dev am: fd544fa64a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20257692 Change-Id: Ib88fd25b900154cf11e8e03a82d468df3b038db4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--packages/SystemUI/src/com/android/systemui/temporarydisplay/chipbar/ChipbarCoordinator.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/temporarydisplay/chipbar/ChipbarCoordinator.kt b/packages/SystemUI/src/com/android/systemui/temporarydisplay/chipbar/ChipbarCoordinator.kt
index 1a8aafb1a5f2..cd7bd2dae8fd 100644
--- a/packages/SystemUI/src/com/android/systemui/temporarydisplay/chipbar/ChipbarCoordinator.kt
+++ b/packages/SystemUI/src/com/android/systemui/temporarydisplay/chipbar/ChipbarCoordinator.kt
@@ -124,6 +124,9 @@ open class ChipbarCoordinator @Inject constructor(
// ---- Text ----
val textView = currentView.requireViewById<TextView>(R.id.text)
TextViewBinder.bind(textView, newInfo.text)
+ // Updates text view bounds to make sure it perfectly fits the new text
+ // (If the new text is smaller than the previous text) see b/253228632.
+ textView.requestLayout()
// ---- End item ----
// Loading