From 84cdd339e1ac01a32d04b48494b3d5facc1c4958 Mon Sep 17 00:00:00 2001 From: DHD2280 Date: Tue, 30 Jul 2024 22:33:09 +0200 Subject: [PATCH] ToastFrame: check storage permission & disable on Style 0 (default) --- .../java/com/drdisagree/iconify/ui/fragments/ToastFrame.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/drdisagree/iconify/ui/fragments/ToastFrame.kt b/app/src/main/java/com/drdisagree/iconify/ui/fragments/ToastFrame.kt index 204f397d8..aad818c6b 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/fragments/ToastFrame.kt +++ b/app/src/main/java/com/drdisagree/iconify/ui/fragments/ToastFrame.kt @@ -87,8 +87,6 @@ class ToastFrame : BaseFragment() { private val onToastClick = object : ToastAdapter.OnToastClick { override fun onToastClick(position: Int, item: ToastModel) { - // Show loading dialog - loadingDialog!!.show(appContextLocale.resources.getString(R.string.loading_dialog_wait)) if (!hasStoragePermission()) { requestStoragePermission(appContext) @@ -106,6 +104,9 @@ class ToastFrame : BaseFragment() { return } + // Show loading dialog + loadingDialog!!.show(appContextLocale.resources.getString(R.string.loading_dialog_wait)) + Thread { val hasErroredOut = AtomicBoolean(false)