Skip to content

Commit

Permalink
SystemUI: Stop scrolling the QS carrier text
Browse files Browse the repository at this point in the history
This change switches the QS carrier label text from an
AutoMarqueeTextView -> TextView. This stops the text from
scrolling to begin with. Then we expand the width of the
text box and right align the text which prevents the text
from forming an ellipsize.

Much needed UX improvement since with some long carrier names
the scrolling text would be really annoying to me and users.
This also keeps in mind that the dual SIM view so both carrier
names are properly visible.

Test: m and check expanded QS carrier text. Tested with T-Mobile
and Wi-Fi Calling enabled.
Change-Id: I46cc908ab01efa9e252e71007236cb1570dee21b
  • Loading branch information
sourajitk authored and basamaryan committed Jul 18, 2023
1 parent 79163ec commit 2b0c477
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/SystemUI/res/layout/qs_carrier.xml
Expand Up @@ -28,14 +28,15 @@
android:clipToPadding="false"
android:focusable="true" >

<com.android.systemui.util.AutoMarqueeTextView
<TextView
android:id="@+id/qs_carrier_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:minWidth="150dp"
android:textAppearance="@style/TextAppearance.QS.Status.Carriers"
android:textDirection="locale"
android:marqueeRepeatLimit="marquee_forever"
android:gravity="center_vertical|end"
android:singleLine="true"
android:maxEms="7"/>

Expand Down

0 comments on commit 2b0c477

Please sign in to comment.