Explicitly disable hyphenation in message adapter

This commit is contained in:
moezbhatti
2018-12-26 21:47:28 -05:00
parent 268aa53264
commit 459b051037
@@ -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)