kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix EmojiTextView regression.
Using the singleLine attribute will make the TextView report that the lineCount is always 1, regardless of actual text length. This breaks our manual ellipsize calculation. Because you can't actually read the singleLine attribute at runtime, I've switched relevant usages of singleLine to use maxLines=1 (relevant usages are EmojiTextViews where singleLine was set and ellipsize was set to 'end'). Fixes #7744fork-5.53.8
rodzic
0b1b568893
commit
07e8ae716c
|
@ -51,7 +51,7 @@
|
|||
android:layout_toStartOf="@+id/thumbnail"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="?attr/conversation_list_item_contact_color"
|
||||
android:singleLine="true"
|
||||
android:maxLines="1"
|
||||
tools:text="Jules Bonnot"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginBottom="2dp"
|
||||
|
@ -84,7 +84,7 @@
|
|||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?attr/conversation_list_item_subject_color"
|
||||
android:fontFamily="sans-serif-light"
|
||||
android:singleLine="true"
|
||||
android:maxLines="1"
|
||||
tools:text="Wheels arrive at 3pm flat. This is a somewhat longer message."
|
||||
android:ellipsize="end" />
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:textSize="18dp"
|
||||
android:transitionName="recipient_name"
|
||||
|
@ -80,7 +80,7 @@
|
|||
android:id="@+id/subtitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:layout_gravity="center_vertical|start"
|
||||
android:gravity="center_vertical"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
style="?android:attr/dropDownItemStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:maxLines="1"
|
||||
/>
|
||||
|
||||
<TextView android:id="@+id/label"
|
||||
|
|
Ładowanie…
Reference in New Issue