diff --git a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt index 673e174e0..6ff5d65a7 100644 --- a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt +++ b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt @@ -26,6 +26,7 @@ class FileAssociationActivity : private val localBookTreeSelect = registerForActivityResult(HandleFileContract()) { it.uri?.let { treeUri -> + AppConfig.defaultBookTreeUri = treeUri.toString() intent.data?.let { uri -> importBook(treeUri, uri) }