mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
make remote/robot score report dialog non-blocking to fix ugly first-game experience
This commit is contained in:
parent
a842363be1
commit
57e2dd5492
2 changed files with 5 additions and 7 deletions
|
@ -329,7 +329,7 @@ public class BoardActivity extends XWActivity
|
||||||
|
|
||||||
case QUERY_REQUEST_BLK:
|
case QUERY_REQUEST_BLK:
|
||||||
case QUERY_INFORM_BLK:
|
case QUERY_INFORM_BLK:
|
||||||
case DLG_SCORES_BLK:
|
case DLG_SCORES:
|
||||||
case DLG_BADWORDS_BLK:
|
case DLG_BADWORDS_BLK:
|
||||||
ab = new AlertDialog.Builder( this )
|
ab = new AlertDialog.Builder( this )
|
||||||
.setMessage( m_dlgBytes );
|
.setMessage( m_dlgBytes );
|
||||||
|
@ -353,7 +353,7 @@ public class BoardActivity extends XWActivity
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ab.setNegativeButton( R.string.button_no, lstnr );
|
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 ) {
|
if ( null != m_words && m_words.length > 0 ) {
|
||||||
String buttonTxt;
|
String buttonTxt;
|
||||||
boolean studyOn = XWPrefs.getStudyEnabled( this );
|
boolean studyOn = XWPrefs.getStudyEnabled( this );
|
||||||
|
@ -1682,10 +1682,8 @@ public class BoardActivity extends XWActivity
|
||||||
@Override
|
@Override
|
||||||
public void informMove( String expl, String words )
|
public void informMove( String expl, String words )
|
||||||
{
|
{
|
||||||
m_dlgBytes = expl;
|
|
||||||
m_dlgTitle = R.string.info_title;
|
|
||||||
m_words = null == words? null : wordsToArray( words );
|
m_words = null == words? null : wordsToArray( words );
|
||||||
waitBlockingDialog( DlgID.DLG_SCORES_BLK, 0 );
|
nonBlockingDialog( DlgID.DLG_SCORES, expl );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2030,6 +2028,7 @@ public class BoardActivity extends XWActivity
|
||||||
{
|
{
|
||||||
switch ( dlgID ) {
|
switch ( dlgID ) {
|
||||||
case DLG_OKONLY:
|
case DLG_OKONLY:
|
||||||
|
case DLG_SCORES:
|
||||||
m_dlgTitle = R.string.info_title;
|
m_dlgTitle = R.string.info_title;
|
||||||
break;
|
break;
|
||||||
case DLG_USEDICT:
|
case DLG_USEDICT:
|
||||||
|
|
|
@ -58,14 +58,13 @@ public enum DlgID {
|
||||||
,WARN_NODICT
|
,WARN_NODICT
|
||||||
,WARN_NODICT_NEW
|
,WARN_NODICT_NEW
|
||||||
,WARN_NODICT_SUBST
|
,WARN_NODICT_SUBST
|
||||||
, BLOCKING_DLG_NONE
|
|
||||||
, DLG_BADWORDS_BLK
|
, DLG_BADWORDS_BLK
|
||||||
, QUERY_REQUEST_BLK
|
, QUERY_REQUEST_BLK
|
||||||
, QUERY_INFORM_BLK
|
, QUERY_INFORM_BLK
|
||||||
, PICK_TILE_REQUESTBLANK_BLK
|
, PICK_TILE_REQUESTBLANK_BLK
|
||||||
, ASK_PASSWORD_BLK
|
, ASK_PASSWORD_BLK
|
||||||
, DLG_RETRY
|
, DLG_RETRY
|
||||||
, DLG_SCORES_BLK
|
, DLG_SCORES
|
||||||
, PICK_TILE_REQUESTTRAY_BLK
|
, PICK_TILE_REQUESTTRAY_BLK
|
||||||
, DLG_USEDICT
|
, DLG_USEDICT
|
||||||
, DLG_GETDICT
|
, DLG_GETDICT
|
||||||
|
|
Loading…
Add table
Reference in a new issue