From f53142e9821253b99709321a3c6323c70865159c Mon Sep 17 00:00:00 2001 From: Mopsalarm Date: Wed, 8 Sep 2021 20:18:26 +0200 Subject: [PATCH] Another bugfix for Android 12. --- .../com/pr0gramm/app/ui/fragments/post/PostFragment.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/src/main/java/com/pr0gramm/app/ui/fragments/post/PostFragment.kt b/app/src/main/java/com/pr0gramm/app/ui/fragments/post/PostFragment.kt index e14addc1a..f82070d87 100644 --- a/app/src/main/java/com/pr0gramm/app/ui/fragments/post/PostFragment.kt +++ b/app/src/main/java/com/pr0gramm/app/ui/fragments/post/PostFragment.kt @@ -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 {