add dict-browse menuitem to small-screen board menu and on same move

undo/redo up per user request
This commit is contained in:
Eric House 2012-06-15 07:00:18 -07:00 committed by Eric House
parent bb5cd677ab
commit 964c4cecd8
3 changed files with 17 additions and 4 deletions

View file

@ -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"
/>

View file

@ -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>

View file

@ -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 );