Skip to content

Instantly share code, notes, and snippets.

@waseefakhtar
Created August 29, 2023 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waseefakhtar/0f636b91c9111b28921a018fc2d27166 to your computer and use it in GitHub Desktop.
Save waseefakhtar/0f636b91c9111b28921a018fc2d27166 to your computer and use it in GitHub Desktop.
private fun showMaxSelectionToast(
numberOfDosage: String,
context: Context
) {
Toast.makeText(
context,
"You're selecting ${(numberOfDosage.toIntOrNull() ?: 0) + 1} time(s) of days which is more than the number of dosage.",
Toast.LENGTH_LONG
).show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment