Permalink
Browse files

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

  • Loading branch information...
1 parent 2bbd738 commit 8f46a70be67fce94ce0838c6745b901f30b181ca @ligi committed May 31, 2012
Showing with 17 additions and 2 deletions.
  1. +1 −1 res/values/strings.xml
  2. +16 −1 src/org/ligi/gobandroid_hd/ui/GoSetupActivity.java
View
@@ -167,5 +167,5 @@
<string name="black">Black</string>
<string name="white">White</string>
<string name="black_and_white">Black &amp;amp; White</string>
-
+ <string name="for_gnugo">for GnuGo</string>
</resources>
@@ -93,7 +93,22 @@ public void onCreate(Bundle savedInstanceState) {
GoPrefs.init(this);
this.setContentView(R.layout.game_setup);
this.setTitle(R.string.board_setup);
- this.getSupportActionBar().setSubtitle(R.string.for_recording);
+
+
+ switch (getApp().getInteractionScope().getMode()) {
+ case InteractionScope.MODE_GNUGO:
+ getSupportActionBar().setSubtitle(R.string.for_gnugo);
+ break;
+
+ default:
+ Log.w("Setting up a GoBoard for a weird mode");
+
+ case InteractionScope.MODE_RECORD:
+ getSupportActionBar().setSubtitle(R.string.for_recording);
+ break;
+ }
+
+
}
private void setup_board() {

0 comments on commit 8f46a70

Please sign in to comment.