diff --git a/app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt b/app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt index 66dc30de2..0db688205 100644 --- a/app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt +++ b/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 {