We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1a7b83 commit d412f10Copy full SHA for d412f10
app/src/main/java/to/bitkit/ui/shared/toast/ToastQueueManager.kt
@@ -78,10 +78,10 @@ class ToastQueueManager(private val scope: CoroutineScope) {
78
* Resume current toast timer with FULL duration (called on drag end).
79
*/
80
fun resumeCurrentToast() {
81
- if (isPaused && _currentToast.value != null) {
+ val toast = _currentToast.value
82
+ if (isPaused && toast != null) {
83
isPaused = false
- val toast = _currentToast.value
84
- if (toast?.autoHide == true) {
+ if (toast.autoHide) {
85
startTimer(toast.visibilityTime)
86
}
87
0 commit comments