From 468c574c25f0dd58b726c6b24ab551526430dd79 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 23 Oct 2021 00:56:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/widget/font/FontSelectDialog.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {