mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
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:
parent
2996af17ce
commit
013d9c689b
2 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue