Skip to content

Commit

Permalink
Another bugfix for Android 12.
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Sep 8, 2021
1 parent cce6938 commit f53142e
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -602,14 +602,6 @@ class PostFragment : BaseFragment("PostFragment"), NewTagDialogFragment.OnAddNew
if (!Storage.hasTreeUri(requireContext())) {
val intent = Storage.openTreeIntent(requireContext())

ignoreAllExceptions {
val noActivityAvailable = requireContext().packageManager.queryIntentActivities(intent, 0).isEmpty()
if (noActivityAvailable) {
showNoFileManagerAvailable()
return
}
}

showDialog(this) {
content(R.string.hint_select_download_directory)
positive {
Expand Down

0 comments on commit f53142e

Please sign in to comment.