diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index d1fef1dfe..84a3dcc47 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -1,9 +1,10 @@ - + Add game + \"%s\" actions: Game settings... Rename... Rename game 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 689c375f0..e26bdb1dc 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java @@ -379,6 +379,14 @@ public class GamesList extends XWListActivity { MenuInflater inflater = getMenuInflater(); inflater.inflate( R.menu.games_list_item_menu, menu ); + + AdapterView.AdapterContextMenuInfo info = + (AdapterView.AdapterContextMenuInfo)menuInfo; + int position = info.position; + long rowid = DBUtils.gamesList( this )[position]; + String title = GameUtils.getName( this, rowid ); + String fmt = getString(R.string.game_item_menu_titlef ); + menu.setHeaderTitle( String.format( fmt, title ) ); } @Override