From f37a9ad8799122228a9e7a3ca07e674915cde9e3 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 23 Oct 2021 20:02:27 +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 --- app/src/main/java/io/legado/app/ui/font/FontSelectDialog.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/font/FontSelectDialog.kt b/app/src/main/java/io/legado/app/ui/font/FontSelectDialog.kt index 07d7aa481..fae800396 100644 --- a/app/src/main/java/io/legado/app/ui/font/FontSelectDialog.kt +++ b/app/src/main/java/io/legado/app/ui/font/FontSelectDialog.kt @@ -1,6 +1,5 @@ package io.legado.app.ui.font -import android.content.Intent import android.net.Uri import android.os.Bundle import android.view.MenuItem @@ -46,10 +45,6 @@ class FontSelectDialog : BaseDialogFragment(R.layout.dialog_font_select), putPrefString(PreferKey.fontFolder, uri.toString()) val doc = DocumentFile.fromTreeUri(requireContext(), uri) if (doc != null) { - context?.contentResolver?.takePersistableUriPermission( - uri, - Intent.FLAG_GRANT_READ_URI_PERMISSION - ) loadFontFiles(doc) } else { RealPathUtil.getPath(requireContext(), uri)?.let { path ->