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

Commit 4e907a7f authored by Michael Mikhail's avatar Michael Mikhail
Browse files

Update chipbar text view in new events

Requests layout to update the bounds of TextView.

Bug: 253228632.
Test: Checked that the chipbar is getting resized in new events.
Change-Id: Ib1f1dabfdaecc6362b3b8434f49f5e4cb4aae9ce
parent 63322e05
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -122,6 +122,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