Workaround for #275.
This commit is contained in:
parent
a0aead6491
commit
592fb6328a
@ -127,7 +127,11 @@ class ArticleFragment : Fragment() {
|
||||
font = prefs.getString("reader_font", "")
|
||||
if (font.isNotEmpty()) {
|
||||
resId = context!!.resources.getIdentifier(font, "font", context!!.packageName)
|
||||
try {
|
||||
typeface = ResourcesCompat.getFont(context!!, resId)!!
|
||||
} catch (e: java.lang.Exception) {
|
||||
ACRA.getErrorReporter().maybeHandleSilentException(Throwable("Font loading issue: ${e.message}"), context!!)
|
||||
}
|
||||
}
|
||||
|
||||
refreshAlignment()
|
||||
|
Loading…
Reference in New Issue
Block a user