Fix RTL bug in message quote headers.

fork-5.53.8
Alex Hart 2022-07-14 09:49:47 -03:00
rodzic 93d370146e
commit c1ed8bc37b
2 zmienionych plików z 2 dodań i 5 usunięć

Wyświetl plik

@ -8,9 +8,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.children
import androidx.core.view.marginEnd
import androidx.core.view.marginLeft
import androidx.core.view.marginStart
import androidx.recyclerview.widget.RecyclerView
import org.thoughtcrime.securesms.R
import org.thoughtcrime.securesms.util.ViewUtil
@ -60,7 +58,7 @@ class MessageQuoteHeaderDecoration(context: Context) : RecyclerView.ItemDecorati
val header: View = LayoutInflater.from(parent.context).inflate(R.layout.message_quote_header_decoration, parent, false)
val widthSpec = View.MeasureSpec.makeMeasureSpec(parent.width - header.marginStart - header.marginEnd, View.MeasureSpec.EXACTLY)
val widthSpec = View.MeasureSpec.makeMeasureSpec(parent.width, View.MeasureSpec.EXACTLY)
val heightSpec = View.MeasureSpec.makeMeasureSpec(parent.height, View.MeasureSpec.UNSPECIFIED)
val childWidth = ViewGroup.getChildMeasureSpec(

Wyświetl plik

@ -3,8 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:paddingHorizontal="24dp"
android:maxLines="2"
android:ellipsize="end"
android:text="@string/MessageQuotesBottomSheet_replies"