mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-13 20:48:02 +01:00
name the number of selected games in delete confirm dialog
This commit is contained in:
parent
b6aa0e19a6
commit
9d6facce84
2 changed files with 5 additions and 3 deletions
|
@ -179,8 +179,8 @@
|
||||||
<string name="confirm_delete">Are you sure you want to delete this
|
<string name="confirm_delete">Are you sure you want to delete this
|
||||||
game?</string>
|
game?</string>
|
||||||
|
|
||||||
<string name="confirm_seldeletes">Are you sure you want to delete
|
<string name="confirm_seldeletesf">Are you sure you want to delete
|
||||||
all selected games? This action cannot be undone.</string>
|
the %d selected game[s]? This action cannot be undone.</string>
|
||||||
|
|
||||||
<!-- Text of confirmation dialog posted when list_item_reset menu
|
<!-- Text of confirmation dialog posted when list_item_reset menu
|
||||||
is selected -->
|
is selected -->
|
||||||
|
|
|
@ -711,7 +711,9 @@ public class GamesList extends XWExpandableListActivity
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case R.id.gamel_menu_delete:
|
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() );
|
GamesActions.DELETE_SELGAMES.ordinal() );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue