suppress warning

This commit is contained in:
Milos Kozak 2021-12-11 11:56:52 +01:00
parent d5c09cd535
commit ecc811bb28

View file

@ -55,6 +55,7 @@ object ToastUtils {
lastToast?.cancel()
lastToast = Toast(ctx)
lastToast?.duration = if (isShort) Toast.LENGTH_SHORT else Toast.LENGTH_LONG
@Suppress("deprecation")
lastToast?.view = toastRoot
lastToast?.show()
}