Adjust snackbar durations (closes #5932)

This commit is contained in:
arkon
2021-09-18 16:17:07 -04:00
parent d7d46f4447
commit 0ec7121b8f
3 changed files with 6 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ fun View.getCoordinates() = Point((left + right) / 2, (top + bottom) / 2)
*/
inline fun View.snack(
message: String,
length: Int = Snackbar.LENGTH_LONG,
length: Int = 10_000,
f: Snackbar.() -> Unit = {}
): Snackbar {
val snack = Snackbar.make(this, message, length)