From 2c63be81e8b06a77df8cb7ad31144681d9749545 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 23 Oct 2013 06:46:33 -0700 Subject: [PATCH] don't delete selected groups if one is the default --- .../android/XWords4/src/org/eehouse/android/xw4/GamesList.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 2118d4068..b90227543 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java @@ -800,7 +800,8 @@ public class GamesList extends XWExpandableListActivity // Group menus case R.id.list_group_delete: - if ( groupID == XWPrefs.getDefaultNewGameGroup( this ) ) { + if ( m_selGroupIDs + .contains( XWPrefs.getDefaultNewGameGroup( this ) ) ) { showOKOnlyDialog( R.string.cannot_delete_default_group ); } else { long[] groupIDs = getSelGroupIDs();