suppress warning
This commit is contained in:
parent
d5c09cd535
commit
ecc811bb28
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ object ToastUtils {
|
||||||
lastToast?.cancel()
|
lastToast?.cancel()
|
||||||
lastToast = Toast(ctx)
|
lastToast = Toast(ctx)
|
||||||
lastToast?.duration = if (isShort) Toast.LENGTH_SHORT else Toast.LENGTH_LONG
|
lastToast?.duration = if (isShort) Toast.LENGTH_SHORT else Toast.LENGTH_LONG
|
||||||
|
@Suppress("deprecation")
|
||||||
lastToast?.view = toastRoot
|
lastToast?.view = toastRoot
|
||||||
lastToast?.show()
|
lastToast?.show()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue