do not show any folder content while asking for storage access
This commit is contained in:
parent
0605b85b35
commit
c36b33ae25
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ import android.support.v7.widget.LinearLayoutManager
|
|||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||
import com.simplemobiletools.commons.dialogs.StoragePickerDialog
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.models.FileDirItem
|
||||
|
@ -98,7 +99,7 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
|
|||
}
|
||||
|
||||
fun openPath(path: String) {
|
||||
if (!isAdded) {
|
||||
if (!isAdded || (activity as? BaseSimpleActivity)?.isAskingPermissions == true) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue