Adjustable timing - Android

On Android, a Toast is often used display temporary messages. The display duration might be too short for people to read or hear the message.

We recommend displaying messages by using an AlertDialog or Snackbar with the duration set to LENGTH_INDEFINITE. Don't forget to add a close button.

Also check whether Executors, Handler or Timer are used somewhere. If there are any time limits, make sure they can be extended.

val snackbar = Snackbar
    .make(view, "Appt", Snackbar.LENGTH_INDEFINITE)
    .setAction("Close") {
        // Close
    }
snackbar.show()