add restart menuitem (debug builds only)

This commit is contained in:
Eric House 2023-10-27 09:04:19 -07:00
parent 107893bb6a
commit b876ae1ff8
3 changed files with 12 additions and 0 deletions

View file

@ -546,6 +546,7 @@ public class GamesListDelegate extends ListDelegateBase
R.id.games_submenu_logs,
R.id.games_menu_copyDevid,
R.id.games_menu_setDevid,
R.id.games_menu_restart,
};
private static final int[] NOSEL_ITEMS = {
R.id.games_menu_newgroup,
@ -1961,6 +1962,10 @@ public class GamesListDelegate extends ListDelegateBase
showDialogFragment( DlgID.SET_MQTTID );
break;
case R.id.games_menu_restart:
ProcessPhoenix.triggerRebirth( m_activity );
break;
case R.id.games_menu_timerStats:
makeOkOnlyBuilder( TimerReceiver.statsStr( m_activity ) )
.setActionPair( Action.CLEAR_INT_STATS, R.string.button_clear_stats )

View file

@ -154,4 +154,8 @@
/>
</menu>
</item>
<item android:id="@+id/games_menu_restart"
android:title="@string/gamel_menu_restart"
/>
</menu>

View file

@ -2645,6 +2645,9 @@
<!-- menu for loading/importing app data -->
<string name="gamel_menu_loaddb">Import app data</string>
<!-- Quit app menu (DEBUG builds only) -->
<string name="gamel_menu_restart">Restart app</string>
<!-- Button to move forward with exporting after choosing data types -->
<string name="archive_button_store">Export</string>
<!-- Button to move forward with importing after choosing data types -->