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)