close game that has no way to connect

add "close game" button to warning about lack of comms, and do that on
dismiss too. Nothing good can come from having the thing stay open.

Eventually the "close" should turn into "edit" and launch GameConfig on
the game with the comms selector up, but that's hard, as currently the
launch only happens from GamesList and is via
startActivityForResult. Might be easiest to close and send an intent to
GamesList to cause it to launch GameConfig that way. Not for this release.
This commit is contained in:
Eric House 2017-01-07 07:44:53 -08:00
parent 8bf65622b5
commit b898637666

View file

@ -1133,6 +1133,9 @@ public class BoardDelegate extends DelegateBase
case ENABLE_RELAY_DO_OR:
m_dropOnDismiss = true;
break;
case DELETE_AND_EXIT:
finish();
break;
default:
super.onNegButton( action, params );
}
@ -1151,6 +1154,9 @@ public class BoardDelegate extends DelegateBase
}, 10 );
}
break;
case DELETE_AND_EXIT:
finish();
break;
}
}
@ -1472,6 +1478,7 @@ public class BoardDelegate extends DelegateBase
makeConfirmThenBuilder( R.string.connstat_net_noaddr,
Action.DELETE_AND_EXIT )
.setPosButton( R.string.list_item_delete )
.setNegButton( R.string.button_close_game )
.show();
}