mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
add restart menuitem (debug builds only)
This commit is contained in:
parent
107893bb6a
commit
b876ae1ff8
3 changed files with 12 additions and 0 deletions
|
@ -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 )
|
||||
|
|
|
@ -154,4 +154,8 @@
|
|||
/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item android:id="@+id/games_menu_restart"
|
||||
android:title="@string/gamel_menu_restart"
|
||||
/>
|
||||
</menu>
|
||||
|
|
|
@ -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 -->
|
||||
|
|
Loading…
Reference in a new issue