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_storedb,
R.id.games_menu_writegit,
R.id.games_menu_enableLogStorage,
R.id.games_menu_disableLogStorage,
R.id.games_menu_clearLogStorage,
R.id.games_menu_dumpLogStorage,
R.id.games_submenu_logs,
};
private static final int[] NOSEL_ITEMS = {
R.id.games_menu_newgroup,

View file

@ -122,16 +122,22 @@
android:title="@string/gamel_menu_writegit"
/>
<item android:id="@+id/games_menu_enableLogStorage"
android:title="@string/gamel_menu_logstore_on"
/>
<item android:id="@+id/games_menu_disableLogStorage"
android:title="@string/gamel_menu_logstore_off"
/>
<item android:id="@+id/games_menu_dumpLogStorage"
android:title="@string/gamel_menu_logstore_dump"
/>
<item android:id="@+id/games_menu_clearLogStorage"
android:title="@string/gamel_menu_logstore_clear"
/>
<item android:id="@+id/games_submenu_logs"
android:title="@string/gamel_menu_logs"
>
<menu>
<item android:id="@+id/games_menu_enableLogStorage"
android:title="@string/gamel_menu_logstore_on"
/>
<item android:id="@+id/games_menu_disableLogStorage"
android:title="@string/gamel_menu_logstore_off"
/>
<item android:id="@+id/games_menu_dumpLogStorage"
android:title="@string/gamel_menu_logstore_dump"
/>
<item android:id="@+id/games_menu_clearLogStorage"
android:title="@string/gamel_menu_logstore_clear"
/>
</menu>
</item>
</menu>

View file

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