]> hydra-www.ietfng.org Git - acmetensortoys-ctfws-android/commitdiff
Revise notification text
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sun, 6 Oct 2019 21:38:00 +0000 (22:38 +0100)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Tue, 8 Oct 2019 09:19:56 +0000 (10:19 +0100)
mobile/src/main/java/com/acmetensortoys/ctfwstimer/service/MainServiceNotification.java
mobile/src/main/res/values/strings.xml

index 46d2e35430ef324ba266708bd20a8cf8da96df8c..6bf2e18d29b66eeefc791e921aff565e6dd48b48 100644 (file)
@@ -86,16 +86,19 @@ class MainServiceNotification {
                     Resources rs = mService.getResources();
 
                     if (now.rationale == CtFwSGameStateManager.NowRationale.NR_GAME_IN_PROGRESS) {
-                        userNoteBuilder.setSubText(rs.getString(R.string.notify_game_afoot));
-                        String ct;
+                        String ct, st;
                         if (now.round == 0) {
-                            ct = rs.getString(R.string.notify_game_setup);
+                            st = rs.getString(R.string.notify_game_setup);
+                            ct = rs.getString(R.string.notify_game_start_soon);
                         } else if (now.round == game.getRounds()) {
+                            st = rs.getString(R.string.notify_game_afoot);
                             ct = rs.getString(R.string.notify_game_end_soon);
                         } else {
+                            st = rs.getString(R.string.notify_game_afoot);
                             ct = String.format(rs.getString(R.string.notify_jailbreak),
                                     now.round, game.getRounds() - 1);
                         }
+                        userNoteBuilder.setSubText(st);
                         userNoteBuilder.setContentTitle(ct);
                     } else {
                         userNoteBuilder.setSubText(rs.getString(R.string.notify_start_future));
index 266fa624e30435d10559eef4b2212696f0309b30..e5c492b68d0fd5835997e830db0534b231b244ad 100644 (file)
@@ -39,7 +39,8 @@
     <string name="header_messages">Messages:</string>
 
     <string name="notify_game_afoot">The game\'s afoot!</string>
-    <string name="notify_game_end_soon">Game ending soon</string>
+    <string name="notify_game_start_soon">Awaiting start of game&#8230;</string>
+    <string name="notify_game_end_soon">No more jailbreaks!</string>
     <string name="notify_game_setup">Setup phase</string>
     <string name="notify_start_future">Start time in the future!</string>
     <string name="notify_game_over">Game over!</string>