change ID of duplicate menu

Board and Games List were using same menuid which meant that even when
chosen from Board's menu it would up getting handled by GamesList (in
dual-pane mode.)
This commit is contained in:
Eric House 2017-09-28 06:50:16 -07:00
parent d3b9a98518
commit 79e852a9eb
2 changed files with 3 additions and 3 deletions

View file

@ -840,7 +840,7 @@ public class BoardDelegate extends DelegateBase
Utils.setItemVisible( menu, R.id.board_menu_game_invites, enable );
enable = XWPrefs.getStudyEnabled( m_activity );
Utils.setItemVisible( menu, R.id.games_menu_study, enable );
Utils.setItemVisible( menu, R.id.board_menu_study, enable );
return true;
} // onPrepareOptionsMenu
@ -910,7 +910,7 @@ public class BoardDelegate extends DelegateBase
case R.id.board_menu_tray:
cmd = JNICmd.CMD_TOGGLE_TRAY;
break;
case R.id.games_menu_study:
case R.id.board_menu_study:
StudyListDelegate.launchOrAlert( getDelegator(), m_gi.dictLang, this );
break;
case R.id.board_menu_game_netstats:

View file

@ -57,7 +57,7 @@
</menu>
</item>
<item android:id="@+id/games_menu_study"
<item android:id="@+id/board_menu_study"
android:title="@string/gamel_menu_study"
/>