reverting the previous commit, doesnt work well with renaming

This commit is contained in:
tibbi 2022-04-26 10:55:59 +02:00 committed by Hosted Weblate
parent 43d588a66c
commit 331f122d56
No known key found for this signature in database
GPG key ID: A3FAAA06E6569B4C

View file

@ -172,7 +172,7 @@ fun BaseSimpleActivity.isShowingSAFDialog(path: String): Boolean {
@SuppressLint("InlinedApi")
fun BaseSimpleActivity.isShowingSAFDialogSdk30(path: String): Boolean {
return if (isAccessibleWithSAFSdk30(path) && !hasProperStoredFirstParentUri(path) && !canManageMedia()) {
return if (isAccessibleWithSAFSdk30(path) && !hasProperStoredFirstParentUri(path)) {
runOnUiThread {
if (!isDestroyed && !isFinishing) {
val level = getFirstParentLevel(path)