mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
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:
parent
8bf65622b5
commit
b898637666
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue