Skip to content

Commit

Permalink
Fixed possible crash if OMPL import failed
Browse files Browse the repository at this point in the history
  • Loading branch information
spacecowboy committed Jul 22, 2023
1 parent b073476 commit a4b8698
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class FeederApplication : Application(), DIAware, ImageLoaderFactory {
Toast.makeText(this@FeederApplication, text, Toast.LENGTH_SHORT).show()
}

override suspend fun makeToast(resId: Int) {
override suspend fun makeToast(resId: Int) = withContext(Dispatchers.Main) {
Toast.makeText(this@FeederApplication, resId, Toast.LENGTH_SHORT).show()
}
}
Expand Down

0 comments on commit a4b8698

Please sign in to comment.