mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +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_submenu_logs,
|
||||||
R.id.games_menu_copyDevid,
|
R.id.games_menu_copyDevid,
|
||||||
R.id.games_menu_setDevid,
|
R.id.games_menu_setDevid,
|
||||||
|
R.id.games_menu_restart,
|
||||||
};
|
};
|
||||||
private static final int[] NOSEL_ITEMS = {
|
private static final int[] NOSEL_ITEMS = {
|
||||||
R.id.games_menu_newgroup,
|
R.id.games_menu_newgroup,
|
||||||
|
@ -1961,6 +1962,10 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
showDialogFragment( DlgID.SET_MQTTID );
|
showDialogFragment( DlgID.SET_MQTTID );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case R.id.games_menu_restart:
|
||||||
|
ProcessPhoenix.triggerRebirth( m_activity );
|
||||||
|
break;
|
||||||
|
|
||||||
case R.id.games_menu_timerStats:
|
case R.id.games_menu_timerStats:
|
||||||
makeOkOnlyBuilder( TimerReceiver.statsStr( m_activity ) )
|
makeOkOnlyBuilder( TimerReceiver.statsStr( m_activity ) )
|
||||||
.setActionPair( Action.CLEAR_INT_STATS, R.string.button_clear_stats )
|
.setActionPair( Action.CLEAR_INT_STATS, R.string.button_clear_stats )
|
||||||
|
|
|
@ -154,4 +154,8 @@
|
||||||
/>
|
/>
|
||||||
</menu>
|
</menu>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
<item android:id="@+id/games_menu_restart"
|
||||||
|
android:title="@string/gamel_menu_restart"
|
||||||
|
/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -2645,6 +2645,9 @@
|
||||||
<!-- menu for loading/importing app data -->
|
<!-- menu for loading/importing app data -->
|
||||||
<string name="gamel_menu_loaddb">Import app data</string>
|
<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 -->
|
<!-- Button to move forward with exporting after choosing data types -->
|
||||||
<string name="archive_button_store">Export</string>
|
<string name="archive_button_store">Export</string>
|
||||||
<!-- Button to move forward with importing after choosing data types -->
|
<!-- Button to move forward with importing after choosing data types -->
|
||||||
|
|
Loading…
Reference in a new issue