Skip to content
This repository
Browse code

show the correct for ... when setting up board for gobandroid

  • Loading branch information...
commit 8f46a70be67fce94ce0838c6745b901f30b181ca 1 parent 2bbd738
ligi authored
2  res/values/strings.xml
@@ -167,5 +167,5 @@
167 167 <string name="black">Black</string>
168 168 <string name="white">White</string>
169 169 <string name="black_and_white">Black &amp;amp; White</string>
170   -
  170 + <string name="for_gnugo">for GnuGo</string>
171 171 </resources>
17 src/org/ligi/gobandroid_hd/ui/GoSetupActivity.java
@@ -93,7 +93,22 @@ public void onCreate(Bundle savedInstanceState) {
93 93 GoPrefs.init(this);
94 94 this.setContentView(R.layout.game_setup);
95 95 this.setTitle(R.string.board_setup);
96   - this.getSupportActionBar().setSubtitle(R.string.for_recording);
  96 +
  97 +
  98 + switch (getApp().getInteractionScope().getMode()) {
  99 + case InteractionScope.MODE_GNUGO:
  100 + getSupportActionBar().setSubtitle(R.string.for_gnugo);
  101 + break;
  102 +
  103 + default:
  104 + Log.w("Setting up a GoBoard for a weird mode");
  105 +
  106 + case InteractionScope.MODE_RECORD:
  107 + getSupportActionBar().setSubtitle(R.string.for_recording);
  108 + break;
  109 + }
  110 +
  111 +
97 112 }
98 113
99 114 private void setup_board() {

0 comments on commit 8f46a70

Please sign in to comment.
Something went wrong with that request. Please try again.