move log-related menuitems into a submenu

This commit is contained in:
Eric House 2020-04-17 18:18:52 -07:00
parent 0e5cc9f2b9
commit 5d2f84acd8
3 changed files with 20 additions and 16 deletions

View file

@ -575,10 +575,7 @@ public class GamesListDelegate extends ListDelegateBase
// R.id.games_menu_loaddb, // R.id.games_menu_loaddb,
R.id.games_menu_storedb, R.id.games_menu_storedb,
R.id.games_menu_writegit, R.id.games_menu_writegit,
R.id.games_menu_enableLogStorage, R.id.games_submenu_logs,
R.id.games_menu_disableLogStorage,
R.id.games_menu_clearLogStorage,
R.id.games_menu_dumpLogStorage,
}; };
private static final int[] NOSEL_ITEMS = { private static final int[] NOSEL_ITEMS = {
R.id.games_menu_newgroup, R.id.games_menu_newgroup,

View file

@ -122,6 +122,10 @@
android:title="@string/gamel_menu_writegit" android:title="@string/gamel_menu_writegit"
/> />
<item android:id="@+id/games_submenu_logs"
android:title="@string/gamel_menu_logs"
>
<menu>
<item android:id="@+id/games_menu_enableLogStorage" <item android:id="@+id/games_menu_enableLogStorage"
android:title="@string/gamel_menu_logstore_on" android:title="@string/gamel_menu_logstore_on"
/> />
@ -135,3 +139,5 @@
android:title="@string/gamel_menu_logstore_clear" android:title="@string/gamel_menu_logstore_clear"
/> />
</menu> </menu>
</item>
</menu>

View file

@ -2520,6 +2520,7 @@
<string name="history_msg_fmt"> Message: %1$s.</string> <string name="history_msg_fmt"> Message: %1$s.</string>
<string name="history_autopause">Auto-paused.</string> <string name="history_autopause">Auto-paused.</string>
<string name="gamel_menu_logs">Debug logs</string>
<!-- Debug-build-only menu to turn on saving of logs --> <!-- Debug-build-only menu to turn on saving of logs -->
<string name="gamel_menu_logstore_on">Enable log storage</string> <string name="gamel_menu_logstore_on">Enable log storage</string>
<!-- Debug-build-only menu to turn off saving of logs --> <!-- Debug-build-only menu to turn off saving of logs -->