remove dictGone dialog

There's no way to get it invoked. I think that's a bug, but when it
comes back it'll come back in different form.
This commit is contained in:
Eric House 2017-02-22 22:35:19 -08:00
parent 2a4bce4ad1
commit 70a99b39fb
4 changed files with 1 additions and 32 deletions

View file

@ -580,11 +580,6 @@ public class DelegateBase implements DlgClickNotify,
m_dlgDelegate.stopProgress(); m_dlgDelegate.stopProgress();
} }
protected void showDictGoneFinish()
{
m_dlgDelegate.showDictGoneFinish();
}
protected void showSMSEnableDialog( Action action, Object... params ) protected void showSMSEnableDialog( Action action, Object... params )
{ {
m_dlgDelegate.showSMSEnableDialog( action, params ); m_dlgDelegate.showSMSEnableDialog( action, params );

View file

@ -380,9 +380,6 @@ public class DlgDelegate {
case DIALOG_ENABLESMS: case DIALOG_ENABLESMS:
Assert.assertFalse( BuildConfig.DEBUG ); Assert.assertFalse( BuildConfig.DEBUG );
break; break;
case DLG_DICTGONE:
dialog = createDictGoneDialog();
break;
default: default:
DbgUtils.logd( TAG, "not creating %s", dlgID.toString() ); DbgUtils.logd( TAG, "not creating %s", dlgID.toString() );
break; break;
@ -412,11 +409,6 @@ public class DlgDelegate {
m_dlgt.show( OkOnlyAlert.newInstance( state ) ); m_dlgt.show( OkOnlyAlert.newInstance( state ) );
} }
public void showDictGoneFinish()
{
showDialog( DlgID.DLG_DICTGONE );
}
// Puts up alert asking to choose a reason to enable SMS, and on dismiss // Puts up alert asking to choose a reason to enable SMS, and on dismiss
// calls onPosButton/onNegButton with the action and in params a Boolean // calls onPosButton/onNegButton with the action and in params a Boolean
// indicating whether enabling is now ok. // indicating whether enabling is now ok.
@ -583,23 +575,6 @@ public class DlgDelegate {
} }
} }
private Dialog createDictGoneDialog()
{
Dialog dialog = LocUtils.makeAlertBuilder( m_activity )
.setTitle( R.string.no_dict_title )
.setMessage( R.string.no_dict_finish )
.setPositiveButton( R.string.button_close_game, null )
.create();
dialog.setOnDismissListener( new DialogInterface.OnDismissListener() {
public void onDismiss( DialogInterface di ) {
m_activity.finish();
}
} );
return dialog;
}
private DlgState findForID( DlgID dlgID ) private DlgState findForID( DlgID dlgID )
{ {
DlgState state = m_dlgStates.get( dlgID ); DlgState state = m_dlgStates.get( dlgID );

View file

@ -32,7 +32,6 @@ public enum DlgID {
, DICT_OR_DECLINE , DICT_OR_DECLINE
, DLG_CONNSTAT , DLG_CONNSTAT
, DLG_DELETED , DLG_DELETED
, DLG_DICTGONE
, DLG_INVITE , DLG_INVITE
, DLG_OKONLY , DLG_OKONLY
, ENABLE_NFC , ENABLE_NFC

View file

@ -553,7 +553,7 @@ public class GameConfigDelegate extends DelegateBase
} }
if ( null == gamePtr ) { if ( null == gamePtr ) {
showDictGoneFinish(); Assert.assertFalse( BuildConfig.DEBUG );
} else { } else {
m_gameStarted = XwJNI.model_getNMoves( gamePtr ) > 0 m_gameStarted = XwJNI.model_getNMoves( gamePtr ) > 0
|| XwJNI.comms_isConnected( gamePtr ); || XwJNI.comms_isConnected( gamePtr );