fix bug introduced with dictionary lookup of words played that meant

trades didn't get reported as remote moves -- it just became your turn
without notice.
This commit is contained in:
Eric House 2012-05-09 18:22:05 -07:00
parent 2996af17ce
commit 013d9c689b
2 changed files with 8 additions and 8 deletions

View file

@ -249,15 +249,15 @@ and_util_turnChanged(XW_UtilCtxt* uc)
static void
and_util_informMove( XW_UtilCtxt* uc, XWStreamCtxt* expl, XWStreamCtxt* words )
{
if ( !!words ) {
UTIL_CBK_HEADER( "informMove", "(Ljava/lang/String;Ljava/lang/String;)V" );
jstring jexpl = streamToJString( env, expl );
jstring jwords = streamToJString( env, words );
jstring jwords = !!words ? streamToJString( env, words ) : NULL;
(*env)->CallVoidMethod( env, util->jutil, mid, jexpl, jwords );
(*env)->DeleteLocalRef( env, jexpl );
if ( !!jwords ) {
(*env)->DeleteLocalRef( env, jwords );
UTIL_CBK_TAIL();
}
UTIL_CBK_TAIL();
}
static void

View file

@ -1396,7 +1396,7 @@ public class BoardActivity extends XWActivity
{
m_dlgBytes = expl;
m_dlgTitle = R.string.info_title;
m_words = wordsToArray( words );
m_words = null == words? null : wordsToArray( words );
waitBlockingDialog( DLG_SCORES_BLK, 0 );
}