Skip to content

Commit 9f625cf

Browse files
committed
fix: dismiss current toast
1 parent 8b998dc commit 9f625cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/to/bitkit/ui/shared/toast/ToastQueueManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class ToastQueueManager(private val scope: CoroutineScope) {
4040
* Add toast to queue. If queue is full, drops oldest.
4141
*/
4242
fun enqueue(toast: Toast) {
43-
dismissCurrentToast()
4443
_queue.update { current ->
4544
val newQueue = if (current.size >= MAX_QUEUE_SIZE) {
4645
// Drop oldest (first item) when queue full
@@ -50,6 +49,7 @@ class ToastQueueManager(private val scope: CoroutineScope) {
5049
}
5150
newQueue
5251
}
52+
dismissCurrentToast()
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)