forked from upstream-mirrors/quik
Explicitly disable hyphenation in message adapter
This commit is contained in:
@@ -21,7 +21,9 @@ package com.moez.QKSMS.feature.compose
|
||||
import android.animation.ObjectAnimator
|
||||
import android.content.Context
|
||||
import android.graphics.Typeface
|
||||
import android.os.Build
|
||||
import android.telephony.PhoneNumberUtils
|
||||
import android.text.Layout
|
||||
import android.text.Spannable
|
||||
import android.text.SpannableString
|
||||
import android.text.style.StyleSpan
|
||||
@@ -139,6 +141,10 @@ class MessagesAdapter @Inject constructor(
|
||||
view.body.setBackgroundTint(theme.theme)
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
view.body.hyphenationFrequency = Layout.HYPHENATION_FREQUENCY_NONE
|
||||
}
|
||||
|
||||
view.attachments.adapter = PartsAdapter(context, navigator, theme)
|
||||
view.attachments.setRecycledViewPool(partsViewPool)
|
||||
view.body.forwardTouches(view)
|
||||
|
||||
Reference in New Issue
Block a user