do not show any folder content while asking for storage access

This commit is contained in:
tibbi 2017-11-19 21:58:18 +01:00
parent 0605b85b35
commit c36b33ae25

View file

@ -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
}