This commit is contained in:
GG Bond authored and Vladimir Dostoyevskiy committed 2023-11-27 20:19:59 +08:00
1 parent 7e2af653ee
commit 939136476e
1 file changed
+1 -1
@@ -474,7 +474,7 @@ class MainActivity : EhActivity() {
}
fun showTip(message: CharSequence, useToast: Boolean = false) {
if (useToast || tipFlow.tryEmit(message.toString())) {
if (useToast || !tipFlow.tryEmit(message.toString())) {
Toast.makeText(this, message, Toast.LENGTH_SHORT).show()
}
}