Commit 4b724914 authored by Francisco Cunha's avatar Francisco Cunha

P4A-965 - Add justify to license

parent 90bc0ed2
......@@ -2,7 +2,9 @@ package security.pEp.ui.about
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.text.Layout.JUSTIFICATION_MODE_INTER_WORD
import androidx.core.content.ContextCompat
import androidx.core.text.HtmlCompat
import com.fsck.k9.R
......@@ -25,6 +27,9 @@ class LicenseActivity : PepActivity() {
toolbarCustomizer.setToolbarColor(ContextCompat.getColor(this, R.color.colorPrimary))
initializeToolbar(true, getString(R.string.license))
licenseText.text = HtmlCompat.fromHtml(getString(R.string.gpl_license), HtmlCompat.FROM_HTML_MODE_LEGACY)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
licenseText.justificationMode = JUSTIFICATION_MODE_INTER_WORD
}
}
override fun inject() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment