Skip to content

Commit

Permalink
Fix download toasts.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodit committed May 21, 2022
1 parent 1f4949d commit efb9bb0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ fun FeatureContext.download(
description: String? = null
) {
if (config.getBoolean("show_toast_on_download")) {
Toast.makeText(appContext, "Download started.", Toast.LENGTH_SHORT).show()
activity?.runOnUiThread {
Toast.makeText(appContext, "Download started.", Toast.LENGTH_SHORT).show()
}
}

val uuid = UUID.randomUUID().toString()
Expand Down

0 comments on commit efb9bb0

Please sign in to comment.