add a newbie-info for new-from menuitem. Still need one for reset.

This commit is contained in:
Andy2 2011-06-13 18:47:42 -07:00 committed by Andy2
parent 3fdf15955e
commit ae0860a047
3 changed files with 16 additions and 2 deletions

View file

@ -64,6 +64,7 @@
<string name="key_notagain_dicts">key_notagain_dicts</string>
<string name="key_notagain_arrow">key_notagain_arrow</string>
<string name="key_notagain_turnchanged">key_notagain_turnchanged</string>
<string name="key_notagain_newfrom">key_notagain_newfrom</string>
<string name="relayids_extra">org.eehouse.android.xw4.relayids_extra</string>

View file

@ -502,6 +502,10 @@
the scoreboard to get details about that player\'s most recent
move.</string>
<string name="not_again_newfrom">Create a new ready-to-play game
using all the settings from this one. That is, treat this game
as a template.</string>
<string name="relay_game_explainf">To start a basic networked two-player
game in %s:</string>

View file

@ -433,8 +433,17 @@ public class GamesList extends XWListActivity
break;
case R.id.list_item_new_from:
String newName = GameUtils.dupeGame( this, path );
invalPath = newName;
Runnable proc = new Runnable() {
public void run() {
String newName =
GameUtils.dupeGame( GamesList.this, path );
if ( null != m_adapter ) {
m_adapter.inval( newName );
}
}
};
showNotAgainDlgThen( R.string.not_again_newfrom,
R.string.key_notagain_newfrom, proc );
break;
case R.id.list_item_copy: