File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
app/src/main/java/to/bitkit/ui/shared/toast Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments