From 55d67f7599548c517e5f2e7b1b6de5998fb5910c Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 17 Aug 2015 06:34:58 -0700 Subject: [PATCH] don't show toast after message send unless user-triggered --- .../src/org/eehouse/android/xw4/jni/JNIThread.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/JNIThread.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/JNIThread.java index b686c062b..f7b41574c 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/JNIThread.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/JNIThread.java @@ -523,11 +523,13 @@ public class JNIThread extends Thread { break; case CMD_RESEND: + boolean force = ((Boolean)args[0]).booleanValue(); int nSent = - XwJNI.comms_resendAll( m_jniGamePtr, - ((Boolean)args[0]).booleanValue(), + XwJNI.comms_resendAll( m_jniGamePtr, force, ((Boolean)args[1]).booleanValue() ); - Message.obtain( m_handler, MSGS_SENT, nSent ).sendToTarget(); + if ( force ) { + Message.obtain(m_handler, MSGS_SENT, nSent).sendToTarget(); + } break; // case CMD_ACKANY: // XwJNI.comms_ackAny( m_jniGamePtr );