This commit is contained in:
IndusAryan 2024-03-07 13:05:12 +05:30
parent c5b11202a6
commit 2109ae27d0

View file

@ -157,10 +157,10 @@ object CommonActivity {
val binding = ToastBinding.inflate(act.layoutInflater)
binding.text.text = message.trim()
// custom toasts are deprecated and won't appear when cs3 sets minSDK to api30 (A11)
val toast = Toast(act)
toast.duration = duration ?: Toast.LENGTH_SHORT
toast.view = binding.root
// custom toasts are deprecated and won't appear when cs3 starts targeting api30 (A11)
currentToast = toast
toast.show()