diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java index 011186475..b21b89d19 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java @@ -1616,6 +1616,10 @@ public class GamesListDelegate extends ListDelegateBase 0 < DBUtils.getGamesWithSendsPending( m_activity ).size(); Utils.setItemVisible( menu, R.id.games_menu_resend, enable ); + enable = Log.getStoreLogs(); + Utils.setItemVisible( menu, R.id.games_menu_enableLogStorage, !enable ); + Utils.setItemVisible( menu, R.id.games_menu_disableLogStorage, enable ); + Assert.assertTrue( m_menuPrepared ); } } diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/Log.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/Log.java index 57fc6ee95..d6c17e707 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/Log.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/Log.java @@ -80,6 +80,11 @@ public class Log { sUseDB = enable; } + public static boolean getStoreLogs() + { + return sUseDB; + } + public static void enable( boolean newVal ) { sEnabled = newVal;