Skip to content

Commit b8bc0b4

Browse files
committed
refactor: convert to expression body
1 parent 2944047 commit b8bc0b4

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,21 +1560,11 @@ class AppViewModel @Inject constructor(
15601560
)
15611561
}
15621562

1563-
fun hideToast() {
1564-
toastManager.dismissCurrentToast()
1565-
}
1563+
fun hideToast() = toastManager.dismissCurrentToast()
15661564

1567-
fun pauseToast() {
1568-
toastManager.pauseCurrentToast()
1569-
}
1565+
fun pauseToast() = toastManager.pauseCurrentToast()
15701566

1571-
fun resumeToast() {
1572-
toastManager.resumeCurrentToast()
1573-
}
1574-
1575-
fun clearToastQueue() {
1576-
toastManager.clear()
1577-
}
1567+
fun resumeToast() = toastManager.resumeCurrentToast()
15781568
// endregion
15791569

15801570
// region security

0 commit comments

Comments
 (0)