Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 459b0510 authored by moezbhatti's avatar moezbhatti
Browse files

Explicitly disable hyphenation in message adapter

parent 268aa532
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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)