make remote/robot score report dialog non-blocking to fix ugly first-game experience

This commit is contained in:
Eric House 2014-03-24 06:55:13 -07:00
parent a842363be1
commit 57e2dd5492
2 changed files with 5 additions and 7 deletions

View file

@ -329,7 +329,7 @@ public class BoardActivity extends XWActivity
case QUERY_REQUEST_BLK:
case QUERY_INFORM_BLK:
case DLG_SCORES_BLK:
case DLG_SCORES:
case DLG_BADWORDS_BLK:
ab = new AlertDialog.Builder( this )
.setMessage( m_dlgBytes );
@ -353,7 +353,7 @@ public class BoardActivity extends XWActivity
}
};
ab.setNegativeButton( R.string.button_no, lstnr );
} else if ( DlgID.DLG_SCORES_BLK == dlgID ) {
} else if ( DlgID.DLG_SCORES == dlgID ) {
if ( null != m_words && m_words.length > 0 ) {
String buttonTxt;
boolean studyOn = XWPrefs.getStudyEnabled( this );
@ -1682,10 +1682,8 @@ public class BoardActivity extends XWActivity
@Override
public void informMove( String expl, String words )
{
m_dlgBytes = expl;
m_dlgTitle = R.string.info_title;
m_words = null == words? null : wordsToArray( words );
waitBlockingDialog( DlgID.DLG_SCORES_BLK, 0 );
nonBlockingDialog( DlgID.DLG_SCORES, expl );
}
@Override
@ -2030,6 +2028,7 @@ public class BoardActivity extends XWActivity
{
switch ( dlgID ) {
case DLG_OKONLY:
case DLG_SCORES:
m_dlgTitle = R.string.info_title;
break;
case DLG_USEDICT:

View file

@ -58,14 +58,13 @@ public enum DlgID {
,WARN_NODICT
,WARN_NODICT_NEW
,WARN_NODICT_SUBST
, BLOCKING_DLG_NONE
, DLG_BADWORDS_BLK
, QUERY_REQUEST_BLK
, QUERY_INFORM_BLK
, PICK_TILE_REQUESTBLANK_BLK
, ASK_PASSWORD_BLK
, DLG_RETRY
, DLG_SCORES_BLK
, DLG_SCORES
, PICK_TILE_REQUESTTRAY_BLK
, DLG_USEDICT
, DLG_GETDICT