pull/71/head^2^2
kunfei 5 years ago
parent 91a5def2cc
commit ede7b0a62b
  1. 2
      app/src/main/java/io/legado/app/ui/widget/font/FontAdapter.kt

@ -20,7 +20,7 @@ class FontAdapter(context: Context, val callBack: CallBack) :
tv_font.typeface = typeface tv_font.typeface = typeface
tv_font.text = item.name tv_font.text = item.name
this.onClick { callBack.onClick(item) } this.onClick { callBack.onClick(item) }
if (item.absolutePath == callBack.curFilePath()) { if (item.name == callBack.curFilePath().substringAfterLast(File.separator)) {
iv_checked.visible() iv_checked.visible()
} else { } else {
iv_checked.invisible() iv_checked.invisible()

Loading…
Cancel
Save