mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
99f3f08cad
commit
f6c06c193f
@ -1,5 +1,6 @@
|
||||
package io.legado.app.ui.book.read.page.provider
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.graphics.Paint
|
||||
import android.graphics.Typeface
|
||||
import android.net.Uri
|
||||
@ -567,6 +568,7 @@ object ChapterProvider {
|
||||
upLayout()
|
||||
}
|
||||
|
||||
@SuppressLint("Recycle")
|
||||
private fun getTypeface(fontPath: String): Typeface {
|
||||
return kotlin.runCatching {
|
||||
when {
|
||||
|
Loading…
Reference in New Issue
Block a user