mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-16 14:07:28 +01:00
Adjust snackbar durations (closes #5932)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user