Skip to content

Instantly share code, notes, and snippets.

@Lavanyagaur22
Created April 6, 2019 08:21
Show Gist options
  • Save Lavanyagaur22/5f7dd2a948dd578c8ca8bd8d0b4b8899 to your computer and use it in GitHub Desktop.
Save Lavanyagaur22/5f7dd2a948dd578c8ca8bd8d0b4b8899 to your computer and use it in GitHub Desktop.
//Toast shown to the user displaying conflict detected.
private fun showToast(context: Context) {
(context as AppCompatActivity).runOnUiThread {
Toast.makeText(context, "Conflict Detected", Toast.LENGTH_SHORT).show()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment