diff --git a/core/src/main/java/info/nightscout/androidaps/utils/ToastUtils.kt b/core/src/main/java/info/nightscout/androidaps/utils/ToastUtils.kt index 0cf79d5326..5d2ef2f6ae 100644 --- a/core/src/main/java/info/nightscout/androidaps/utils/ToastUtils.kt +++ b/core/src/main/java/info/nightscout/androidaps/utils/ToastUtils.kt @@ -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() }