name the number of selected games in delete confirm dialog

This commit is contained in:
Eric House 2013-10-16 07:21:34 -07:00
parent b6aa0e19a6
commit 9d6facce84
2 changed files with 5 additions and 3 deletions

View file

@ -179,8 +179,8 @@
<string name="confirm_delete">Are you sure you want to delete this
game?</string>
<string name="confirm_seldeletes">Are you sure you want to delete
all selected games? This action cannot be undone.</string>
<string name="confirm_seldeletesf">Are you sure you want to delete
the %d selected game[s]? This action cannot be undone.</string>
<!-- Text of confirmation dialog posted when list_item_reset menu
is selected -->

View file

@ -711,7 +711,9 @@ public class GamesList extends XWExpandableListActivity
break;
case R.id.gamel_menu_delete:
showConfirmThen( R.string.confirm_seldeletes, R.string.button_delete,
String msg = Utils.format( this, R.string.confirm_seldeletesf,
m_selected.size() );
showConfirmThen( msg, R.string.button_delete,
GamesActions.DELETE_SELGAMES.ordinal() );
break;