优化文字选择,不再缓存

pull/276/head^2
gedoor 4 years ago
parent 732d244e62
commit 608d6c92a9
  1. 3
      app/src/main/java/io/legado/app/ui/widget/font/FontAdapter.kt

@ -36,7 +36,8 @@ class FontAdapter(context: Context, val callBack: CallBack) :
} }
tv_font.typeface = typeface tv_font.typeface = typeface
} catch (e: Exception) { } catch (e: Exception) {
context.toast("读取${item.name}字体失败") e.printStackTrace()
context.toast("Read Fond Error: ${e.localizedMessage}")
} }
tv_font.text = item.name tv_font.text = item.name
this.onClick { callBack.onClick(item) } this.onClick { callBack.onClick(item) }

Loading…
Cancel
Save