pull/2718/head
kunfei 2 years ago
parent 82afa372d9
commit f9ee35a535
  1. 2
      app/src/main/AndroidManifest.xml
  2. 3
      app/src/main/java/io/legado/app/ui/font/FontSelectDialog.kt

@ -15,7 +15,7 @@
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
tools:ignore="ScopedStorage" />
<application
android:name=".App"

@ -1,7 +1,6 @@
package io.legado.app.ui.font
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.view.MenuItem
import android.view.View
@ -115,12 +114,10 @@ class FontSelectDialog : BaseDialogFragment(R.layout.dialog_font_select),
launch(Main) {
val defaultPath = "SD${File.separator}Fonts"
selectFontDir.launch {
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.Q) {
otherActions = arrayListOf(SelectItem(defaultPath, -1))
}
}
}
}
private fun getLocalFonts(): ArrayList<FileDoc> {
val path = FileUtils.getPath(requireContext().externalFiles, "font")

Loading…
Cancel
Save