From d470a1c1e0aca9b8a98dc7e5b503815026904367 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Mon, 13 Jun 2011 18:47:42 -0700 Subject: [PATCH] add a newbie-info for new-from menuitem. Still need one for reset. --- xwords4/android/XWords4/res/values/common_rsrc.xml | 1 + xwords4/android/XWords4/res/values/strings.xml | 4 ++++ .../src/org/eehouse/android/xw4/GamesList.java | 13 +++++++++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/res/values/common_rsrc.xml b/xwords4/android/XWords4/res/values/common_rsrc.xml index 9f6ae2a55..6890b471c 100644 --- a/xwords4/android/XWords4/res/values/common_rsrc.xml +++ b/xwords4/android/XWords4/res/values/common_rsrc.xml @@ -68,6 +68,7 @@ key_notagain_dicts key_notagain_arrow key_notagain_turnchanged + key_notagain_newfrom eehouse.org diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index aae1d88c0..a873304b0 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -524,6 +524,10 @@ the scoreboard to get details about that player\'s most recent move. + Create a new ready-to-play game + using all the settings from this one. That is, treat this game + as a template. + To start a basic networked two-player game in %s: diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java index f10429685..1a546389b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java @@ -468,8 +468,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: