|
|
|
@ -127,8 +127,12 @@ class ImportBookActivity : VMBaseActivity<ImportBookViewModel>(R.layout.activity |
|
|
|
|
lastPath.isContentPath() -> { |
|
|
|
|
val rootUri = Uri.parse(lastPath) |
|
|
|
|
rootDoc = DocumentFile.fromTreeUri(this, rootUri) |
|
|
|
|
subDocs.clear() |
|
|
|
|
upPath() |
|
|
|
|
if (rootDoc == null) { |
|
|
|
|
FilePicker.selectFolder(this, requestCodeSelectFolder) |
|
|
|
|
} else { |
|
|
|
|
subDocs.clear() |
|
|
|
|
upPath() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Build.VERSION.SDK_INT > Build.VERSION_CODES.Q -> { |
|
|
|
|
FilePicker.selectFolder(this, requestCodeSelectFolder) |
|
|
|
|