From 22d859fcde155c2bb7a2b68b7905714b187fb02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Wed, 18 Mar 2020 12:44:57 +0100 Subject: [PATCH] [UI] Set main snackbar dismiss timeout to 7 seconds. --- .../pl/szczodrzynski/edziennik/ui/modules/base/MainSnackbar.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/base/MainSnackbar.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/base/MainSnackbar.kt index 245f5693..362ffe9b 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/base/MainSnackbar.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/base/MainSnackbar.kt @@ -40,6 +40,7 @@ class MainSnackbar(val activity: AppCompatActivity) { setAction(actionText) { onClick?.invoke() } + duration = 7000 show() } }