pull/2605/head
kunfei 2 years ago
parent 99f3f08cad
commit f6c06c193f
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -1,5 +1,6 @@
package io.legado.app.ui.book.read.page.provider package io.legado.app.ui.book.read.page.provider
import android.annotation.SuppressLint
import android.graphics.Paint import android.graphics.Paint
import android.graphics.Typeface import android.graphics.Typeface
import android.net.Uri import android.net.Uri
@ -567,6 +568,7 @@ object ChapterProvider {
upLayout() upLayout()
} }
@SuppressLint("Recycle")
private fun getTypeface(fontPath: String): Typeface { private fun getTypeface(fontPath: String): Typeface {
return kotlin.runCatching { return kotlin.runCatching {
when { when {

Loading…
Cancel
Save