Skip to content

Commit

Permalink
ToastFrame: check storage permission & disable on Style 0 (default)
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Jul 30, 2024
1 parent a0fd99e commit 84cdd33
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit 84cdd33

Please sign in to comment.