From 923ac6db985de6458d6ab7f37480ed2bd9c91a32 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 5 Mar 2014 06:37:02 -0800 Subject: [PATCH] show loadDB menuitem only when nothing's selected --- .../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 938166ff1..2be8a47ef 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesList.java @@ -672,7 +672,8 @@ public class GamesList extends XWExpandableListActivity || XWPrefs.getDebugEnabled( this ); showItemsIf( DEBUG_ITEMS, menu, nothingSelected && showDbg ); Utils.setItemVisible( menu, R.id.games_menu_loaddb, - showDbg && DBUtils.gameDBExists( this ) ); + showDbg && nothingSelected && + DBUtils.gameDBExists( this ) ); showItemsIf( NOSEL_ITEMS, menu, nothingSelected ); showItemsIf( ONEGAME_ITEMS, menu, 1 == nGamesSelected );