pull/32/head
kunfei 5 years ago
parent 4af8a49ef8
commit ac0268eb9a
  1. 8
      app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt

@ -71,8 +71,12 @@ class FontSelectDialog(context: Context) : FontAdapter.CallBack {
}
override fun onClick(file: File) {
selectFile?.invoke(file.absolutePath)
dialog?.dismiss()
file.absolutePath.let {
if (it != curPath) {
selectFile?.invoke(it)
dialog?.dismiss()
}
}
}
override fun curFilePath(): String {

Loading…
Cancel
Save