Fix tip
This commit is contained in:
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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user