pull/71/head^2^2
kunfei 5 years ago
parent b032acca6a
commit 3fdcdec074
  1. 2
      app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt

@ -167,7 +167,7 @@ class FontSelectDialog : DialogFragment(),
override fun onClick(file: File) {
launch(IO) {
file.copyTo(FileHelp.getFile(fontFolder + file.name)).absolutePath.let { path ->
file.copyTo(FileHelp.getFile(fontFolder + file.name), true).absolutePath.let { path ->
val cb = (parentFragment as? CallBack) ?: (activity as? CallBack)
cb?.let {
if (it.curFontPath != path) {

Loading…
Cancel
Save