mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
add dict-browse menuitem to small-screen board menu and on same move
undo/redo up per user request
This commit is contained in:
parent
bb5cd677ab
commit
964c4cecd8
3 changed files with 17 additions and 4 deletions
|
@ -31,8 +31,16 @@
|
|||
/>
|
||||
</group>
|
||||
|
||||
<item android:id="@+id/board_menu_undo_current"
|
||||
android:title="@string/board_menu_undo_current"
|
||||
/>
|
||||
|
||||
<item android:id="@+id/board_menu_tray"/>
|
||||
|
||||
<item android:id="@+id/board_menu_dict"
|
||||
android:title="@string/board_menu_dict"
|
||||
/>
|
||||
|
||||
<item android:id="@+id/board_menu_juggle"
|
||||
android:title="@string/menu_juggle"
|
||||
/>
|
||||
|
@ -40,10 +48,6 @@
|
|||
android:title="@string/menu_flip"
|
||||
/>
|
||||
|
||||
<item android:id="@+id/board_menu_undo_current"
|
||||
android:title="@string/board_menu_undo_current"
|
||||
/>
|
||||
|
||||
<item android:id="@+id/board_menu_undo_last"
|
||||
android:title="@string/board_menu_undo_last"
|
||||
/>
|
||||
|
|
|
@ -1940,5 +1940,7 @@
|
|||
<string name="menu_chat">Chat</string>
|
||||
<string name="menu_toggle_values">Toggle values</string>
|
||||
|
||||
<!-- board menu for small devices only -->
|
||||
<string name="board_menu_dict">Browse wordlist</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -704,6 +704,13 @@ public class BoardActivity extends XWActivity
|
|||
case R.id.board_menu_undo_last:
|
||||
showConfirmThen( R.string.confirm_undo_last, UNDO_LAST_ACTION );
|
||||
break;
|
||||
|
||||
// small devices only
|
||||
case R.id.board_menu_dict:
|
||||
String dictName = m_gi.dictName( m_view.getCurPlayer() );
|
||||
DictBrowseActivity.launch( this, dictName );
|
||||
break;
|
||||
|
||||
case R.id.board_menu_game_counts:
|
||||
m_jniThread.handle( JNIThread.JNICmd.CMD_COUNTS_VALUES,
|
||||
R.string.counts_values_title );
|
||||
|
|
Loading…
Reference in a new issue