Skip to content

Commit b94f4d1

Browse files
committed
chore: remove comments from private methods
1 parent c49025b commit b94f4d1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ class ToastQueueManager(private val scope: CoroutineScope) {
9797
isPaused = false
9898
}
9999

100-
/**
101-
* Show next toast from queue and start its timer.
102-
*/
103100
private fun showNextToast() {
104101
val nextToast = _queue.value.firstOrNull() ?: return
105102

@@ -116,9 +113,6 @@ class ToastQueueManager(private val scope: CoroutineScope) {
116113
}
117114
}
118115

119-
/**
120-
* Start auto-hide timer for current toast.
121-
*/
122116
private fun startTimer(duration: Long) {
123117
cancelTimer()
124118
timerJob = scope.launch {
@@ -131,18 +125,12 @@ class ToastQueueManager(private val scope: CoroutineScope) {
131125
}
132126
}
133127

134-
/**
135-
* Show next toast if queue is not empty and no toast is currently displayed.
136-
*/
137128
private fun showNextToastIfAvailable() {
138129
if (_currentToast.value == null && _queue.value.isNotEmpty()) {
139130
showNextToast()
140131
}
141132
}
142133

143-
/**
144-
* Cancel current timer (idempotent).
145-
*/
146134
private fun cancelTimer() {
147135
timerJob?.cancel()
148136
timerJob = null

0 commit comments

Comments
 (0)