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

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

Loading…
Cancel
Save