]> Pileus Git - ~andy/spades/blobdiff - src/Main.java
Show turn in title bar
[~andy/spades] / src / Main.java
index 0b29dbad516662d39776170ef7b9409865c8786d..362af122c04e825127d2bfc822f61e36609b0f42 100644 (file)
@@ -195,6 +195,12 @@ public class Main extends Activity
                                break;
                }
                this.lscroll.smoothScrollTo(0, this.log.getBottom());
+
+               // Update title
+               if (this.cards.turn  != null && this.cards.turn  != "" &&
+                   this.cards.state != null && this.cards.state != "") {
+                       this.setTitle("Spades - " + this.cards.turn + "'s " + this.cards.state);
+               }
        }
 
        private void onNotify(String text)