pull/1415/head
gedoor 3 years ago
parent d5dad7065d
commit 468c574c25
  1. 4
      app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt

@ -52,8 +52,8 @@ class FontSelectDialog : BaseDialogFragment(R.layout.dialog_font_select),
)
loadFontFiles(doc)
} else {
RealPathUtil.getPath(requireContext(), uri)?.let {
loadFontFilesByPermission(it)
RealPathUtil.getPath(requireContext(), uri)?.let { path ->
loadFontFilesByPermission(path)
}
}
} else {

Loading…
Cancel
Save