Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Launcher: game_day's turns in the race panel, with dots, and the F1 weekend as one turn

Justin Newman427e9e6f667b
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
index 179614434..ffc5f6461 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@ -193,6 +193,13 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
private List<RaceWeekend.Race> raceCalendar;
private View racePanel;
private TextView raceKicker, raceHeadline, raceSessions;
+ /** game_day: each team's next game from an add-on, rotating in the race panel; null when the key is off. */
+ private GameDay gameDay;
+ private View raceBar;
+ private LinearLayout racePager;
+ private long rotationStart;
+ private long lastEndedRead;
+ private final Runnable turnTick = this::updatePanel;
/** config.xml show_stats, overridable by a theme. Off: the line is gone and nothing is read. */
private boolean showStats;
/** config.xml inputs_connected_only: the Inputs menu lists only connected inputs, the rest behind "More inputs". */
@@ -373,7 +380,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
@Override
public void run() {
updateGreeting();
- updateRace();
+ updatePanel();
// The pill follows the network callbacks and each return to Home; only the diya's flame follows the
// signal level, so only it needs this minute's binder calls (about 7 ms on the UI thread).
if (festive) updateWifiLabel();
@@ -496,6 +503,10 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
raceKicker = findViewById(R.id.raceKicker);
raceHeadline = findViewById(R.id.raceHeadline);
raceSessions = findViewById(R.id.raceSessions);
+ raceBar = findViewById(R.id.raceBar);
+ racePager = findViewById(R.id.racePager);
+ gameDay = GameDay.create(this, cfg.gameDay, handler, this::updatePanel);
+ rotationStart = System.currentTimeMillis();
showStats = cfg.showStats;
inputsConnectedOnly = cfg.inputsConnectedOnly;
shamsi = cfg.shamsiDate;
@@ -914,6 +925,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
if (openLauncherSettingsIfAsked(intent)) return;
if (openInputsIfAsked(intent)) return;
if (intent == null || !intent.hasCategory(Intent.CATEGORY_HOME)) return;
+ if (gameDay != null && !stopped) gameDay.read();
grid.scrollToPosition(0);
lastFocused = 0;
lastFocusedKey = adapter.getItemCount() > 0 ? adapter.keyAt(0) : null;
@@ -973,7 +985,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
}
if (openLiveTvAfterBoot()) return;
updateGreeting();
- updateRace();
+ updatePanel();
// The network and Inputs pills keep their state while Home is in the background, and callbacks update them
// when the network or the inputs change, so this refresh only catches anything missed. Its binder calls
// (about 7 ms on a TCL C755, most of it WifiManager.getConnectionInfo) would hold up the first frame back
@@ -986,6 +998,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
pillsShown = true;
}
if (showStats) startStats();
+ if (gameDay != null) gameDay.start();
sky.update();
wallpaperPlayer.start();
handler.postDelayed(minuteTick, MINUTE_MS);
@@ -1163,6 +1176,8 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
heroArt.animate().cancel();
handler.removeCallbacks(minuteTick);
stopStats();
+ if (gameDay != null) gameDay.stop();
+ handler.removeCallbacks(turnTick);
if (diya != null) diya.stop();
cancelPendingFocusScroll();
// Nothing of ours stays on screen over another app; an undecided prompt simply returns next time.
@@ -1216,6 +1231,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
@Override
protected void onDestroy() {
super.onDestroy();
+ if (gameDay != null) gameDay.shutdown();
unregisterReceiver(packageReceiver);
wallpaperPlayer.close();
ConnectivityManager cm = getSystemService(ConnectivityManager.class);
@@ -2541,8 +2557,87 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
* Shows or hides the race-weekend panel for this minute. Text only, set once a minute with the clock:
* nothing animates, so the panel costs the GPU nothing between ticks.
*/
- private void updateRace() {
- // an empty calendar (a theme without race_calendar, or a reset) hides a panel the last theme showed
+ /**
+ * The race panel's place under the clock. With game_day off it is exactly the F1 panel (updateRace). With it on,
+ * each team's next game takes a turn there, and the theme's F1 weekend is one more turn drawn as today.
+ */
+ private void updatePanel() {
+ if (gameDay == null) {
+ updateRace();
+ return;
+ }
+ handler.removeCallbacks(turnTick);
+ long now = System.currentTimeMillis();
+ List<GameDay.Turn> games = gameDay.turns();
+ for (GameDay.Turn g : games) {
+ if (g.endMs <= now && now - lastEndedRead > MINUTE_MS) {
+ // A game is over: the add-on already has that team's next one.
+ lastEndedRead = now;
+ gameDay.read();
+ break;
+ }
+ }
+ RaceWeekend.State f1 = raceCalendar.isEmpty() ? null : RaceWeekend.at(raceCalendar, java.time.Instant.ofEpochMilli(now));
+ List<GameDay.Turn> turns = GameDay.merge(games, f1, now);
+ if (turns.isEmpty()) {
+ racePanel.setVisibility(View.GONE);
+ return;
+ }
+ int seconds = gameDay.turnSeconds();
+ int on = GameDay.current(turns.size(), now - rotationStart, seconds);
+ GameDay.Turn t = turns.get(on);
+ if (t.f1) {
+ raceBar.setBackgroundResource(R.drawable.race_bar);
+ updateRace();
+ } else {
+ GradientDrawable bar = new GradientDrawable();
+ bar.setCornerRadius(1.5f * density);
+ bar.setColor(t.colour);
+ raceBar.setBackground(bar);
+ raceKicker.setText(t.topLine);
+ if (GameDay.live(t, now)) {
+ SpannableString live = new SpannableString("\u25CF " + getString(R.string.game_live));
+ live.setSpan(new ForegroundColorSpan(RACE_RED), 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
+ raceHeadline.setText(live);
+ } else {
+ String in = RaceWeekend.countdown(getResources(), GameDay.until(t, now));
+ raceHeadline.setText(t.word.isEmpty() ? in : getString(R.string.race_next, t.word, in));
+ }
+ raceSessions.setText("");
+ racePanel.setVisibility(View.VISIBLE);
+ }
+ showPager(turns.size(), on);
+ if (turns.size() > 1 && !stopped) {
+ long turnMs = seconds * 1000L;
+ handler.postDelayed(turnTick, turnMs - (now - rotationStart) % turnMs);
+ }
+ }
+
+ /** One dot per turn, the one on screen bright; none for a single turn. */
+ private void showPager(int count, int on) {
+ if (count < 2) {
+ racePager.setVisibility(View.GONE);
+ return;
+ }
+ if (racePager.getChildCount() != count) {
+ racePager.removeAllViews();
+ int size = Math.round(5 * density);
+ for (int k = 0; k < count; k++) {
+ View dot = new View(this);
+ GradientDrawable d = new GradientDrawable();
+ d.setShape(GradientDrawable.OVAL);
+ d.setColor(0xFFFFFFFF);
+ dot.setBackground(d);
+ LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(size, size);
+ lp.setMarginEnd(size);
+ racePager.addView(dot, lp);
+ }
+ }
+ for (int k = 0; k < count; k++) racePager.getChildAt(k).setAlpha(k == on ? 0.9f : 0.3f);
+ racePager.setVisibility(View.VISIBLE);
+ }
+
+ private void updateRace() { // an empty calendar (a theme without race_calendar, or a reset) hides a panel the last theme showed
RaceWeekend.State s = raceCalendar.isEmpty() ? null : RaceWeekend.at(raceCalendar, java.time.Instant.now());
if (s == null) {
racePanel.setVisibility(View.GONE);
diff --git a/launcher/app/src/main/res/layout-iw/activity_main.xml b/launcher/app/src/main/res/layout-iw/activity_main.xml
index 8bf804f58..d1dc0fb31 100644
--- a/launcher/app/src/main/res/layout-iw/activity_main.xml
+++ b/launcher/app/src/main/res/layout-iw/activity_main.xml
@@ -67,6 +67,7 @@
android:layout_width="3dp"
android:layout_height="13dp"
android:layout_marginStart="10dp"
+ android:id="@+id/raceBar"
android:background="@drawable/race_bar" />
</LinearLayout>
@@ -92,6 +93,15 @@
android:textSize="12sp"
android:fontFamily="@string/font_medium"
android:letterSpacing="0.12" />
+
+ <!-- game_day: one dot per turn when the panel rotates between games (and the F1 weekend). -->
+ <LinearLayout
+ android:id="@+id/racePager"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="12dp"
+ android:orientation="horizontal"
+ android:visibility="gone" />
</LinearLayout>
<!-- Cinematic top shelf: darkens the edge behind the shelf and the lower half, so the text and the
diff --git a/launcher/app/src/main/res/layout/activity_main.xml b/launcher/app/src/main/res/layout/activity_main.xml
index c037d247e..70c6de304 100644
--- a/launcher/app/src/main/res/layout/activity_main.xml
+++ b/launcher/app/src/main/res/layout/activity_main.xml
@@ -56,6 +56,7 @@
android:layout_width="3dp"
android:layout_height="13dp"
android:layout_marginEnd="10dp"
+ android:id="@+id/raceBar"
android:background="@drawable/race_bar" />
<TextView
@@ -92,6 +93,15 @@
android:textSize="12sp"
android:fontFamily="@string/font_medium"
android:letterSpacing="0.12" />
+
+ <!-- game_day: one dot per turn when the panel rotates between games (and the F1 weekend). -->
+ <LinearLayout
+ android:id="@+id/racePager"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="12dp"
+ android:orientation="horizontal"
+ android:visibility="gone" />
</LinearLayout>
<!-- Cinematic top shelf: darkens the edge behind the shelf and the lower half, so the text and the
diff --git a/launcher/app/src/main/res/values-ar/strings.xml b/launcher/app/src/main/res/values-ar/strings.xml
index 542cedfd4..b60be457e 100644
--- a/launcher/app/src/main/res/values-ar/strings.xml
+++ b/launcher/app/src/main/res/values-ar/strings.xml
@@ -97,4 +97,5 @@
<item quantity="other">%1$d تطبيق</item>
</plurals>
<string name="greeting_with_name">%1$s، %2$s</string>
+ <string name="game_live">مباشر الآن</string>
</resources>
diff --git a/launcher/app/src/main/res/values-b+sr+Latn/strings.xml b/launcher/app/src/main/res/values-b+sr+Latn/strings.xml
index 12bf98b87..e54e0c11e 100644
--- a/launcher/app/src/main/res/values-b+sr+Latn/strings.xml
+++ b/launcher/app/src/main/res/values-b+sr+Latn/strings.xml
@@ -75,4 +75,5 @@
<item quantity="other">%1$d aplikacija</item>
</plurals>
<string name="greeting_with_name">%1$s, %2$s</string>
+ <string name="game_live">Uživo sada</string>
</resources>
diff --git a/launcher/app/src/main/res/values-bn/strings.xml b/launcher/app/src/main/res/values-bn/strings.xml
index 9b9649b01..d6cc3d9f0 100644
--- a/launcher/app/src/main/res/values-bn/strings.xml
+++ b/launcher/app/src/main/res/values-bn/strings.xml
@@ -98,4 +98,5 @@
<item quantity="other">%1$dটি অ্যাপ</item>
</plurals>
<string name="greeting_with_name">%1$s, %2$s</string>
+ <string name="game_live">এখন সরাসরি</string>
</resources>
diff --git a/launcher/app/src/main/res/values-ca/strings.xml b/launcher/app/src/main/res/values-ca/strings.xml
index 5b6c14cc9..27bf7b670 100644
--- a/launcher/app/src/main/res/values-ca/strings.xml
+++ b/launcher/app/src/main/res/values-ca/strings.xml
@@ -108,4 +108,5 @@
<string name="race_live">%1$s · en directe</string>
<string name="race_finished">Bandera de quadres</string>
<string name="last_opened">Obert per últim cop: %1$s</string>
+ <string name="game_live">En directe</string>
</resources>
diff --git a/launcher/app/src/main/res/values-cs/strings.xml b/launcher/app/src/main/res/values-cs/strings.xml
index ffc3df339..752886b76 100644
--- a/launcher/app/src/main/res/values-cs/strings.xml
+++ b/launcher/app/src/main/res/values-cs/strings.xml
@@ -108,4 +108,5 @@
</plurals>
<string name="greeting_with_name">%1$s, %2$s</string>
<string name="last_opened">Naposledy otevřeno: %1$s</string>
+ <string name="game_live">Právě živě</string>
</resources>
diff --git a/launcher/app/src/main/res/values-da/strings.xml b/launcher/app/src/main/res/values-da/strings.xml
index a3e0c8726..05593e6c8 100644
--- a/launcher/app/src/main/res/values-da/strings.xml
+++ b/launcher/app/src/main/res/values-da/strings.xml
@@ -96,4 +96,5 @@
<string name="race_countdown_hours">%1$dt %2$dm</string>
<string name="race_countdown_days">%1$dd %2$dt</string>
<string name="last_opened">Sidst åbnet %1$s</string>
+ <string name="game_live">Live nu</string>
</resources>
diff --git a/launcher/app/src/main/res/values-de/strings.xml b/launcher/app/src/main/res/values-de/strings.xml
index 55915d64d..743d63aef 100644
--- a/launcher/app/src/main/res/values-de/strings.xml
+++ b/launcher/app/src/main/res/values-de/strings.xml
@@ -70,4 +70,5 @@
<item quantity="other">%1$d Apps</item>
</plurals>
<string name="greeting_with_name">%1$s, %2$s</string>
+ <string name="game_live">Jetzt live</string>
</resources>
diff --git a/launcher/app/src/main/res/values-es/strings.xml b/launcher/app/src/main/res/values-es/strings.xml
index e32449212..2530c2acd 100644
--- a/launcher/app/src/main/res/values-es/strings.xml
+++ b/launcher/app/src/main/res/values-es/strings.xml
@@ -144,4 +144,5 @@
<string name="race_countdown_hours">%1$dh %2$dm</string>
<string name="race_countdown_days">%1$dd %2$dh</string>
<string name="last_opened">Abierta por última vez %1$s</string>
+ <string name="game_live">En directo</string>
</resources>
diff --git a/launcher/app/src/main/res/values-fi/strings.xml b/launcher/app/src/main/res/values-fi/strings.xml
index ac4732815..6cd638a9b 100644
--- a/launcher/app/src/main/res/values-fi/strings.xml
+++ b/launcher/app/src/main/res/values-fi/strings.xml
@@ -111,4 +111,5 @@
<string name="race_live">%1$s · käynnissä</string>
<string name="race_finished">Ruutulippu</string>
<string name="last_opened">Viimeksi avattu %1$s</string>
+ <string name="game_live">Käynnissä nyt</string>
</resources>
diff --git a/launcher/app/src/main/res/values-fr/strings.xml b/launcher/app/src/main/res/values-fr/strings.xml
index 7fab6f4be..e416d3e1e 100644
--- a/launcher/app/src/main/res/values-fr/strings.xml
+++ b/launcher/app/src/main/res/values-fr/strings.xml
@@ -94,4 +94,5 @@
</plurals>
<string name="greeting_with_name">%1$s, %2$s</string>
<string name="last_opened">Dernière ouverture : %1$s</string>
+ <string name="game_live">En direct</string>
</resources>
diff --git a/launcher/app/src/main/res/values-in/strings.xml b/launcher/app/src/main/res/values-in/strings.xml
index a082832d8..75d02a974 100644
--- a/launcher/app/src/main/res/values-in/strings.xml
+++ b/launcher/app/src/main/res/values-in/strings.xml
@@ -109,4 +109,5 @@
<string name="race_live">%1$s · langsung</string>
<string name="race_finished">Bendera finis</string>
<string name="last_opened">Terakhir dibuka %1$s</string>
+ <string name="game_live">Langsung sekarang</string>
</resources>
diff --git a/launcher/app/src/main/res/values-it/strings.xml b/launcher/app/src/main/res/values-it/strings.xml
index a3f242b54..5fc97d499 100644
--- a/launcher/app/src/main/res/values-it/strings.xml
+++ b/launcher/app/src/main/res/values-it/strings.xml
@@ -144,4 +144,5 @@
<string name="race_countdown_hours">%1$dh %2$dm</string>
<string name="race_countdown_days">%1$dg %2$dh</string>
<string name="last_opened">Ultima apertura: %1$s</string>
+ <string name="game_live">In diretta</string>
</resources>
diff --git a/launcher/app/src/main/res/values-iw/strings.xml b/launcher/app/src/main/res/values-iw/strings.xml
index 06b824cf6..61dc06012 100644
--- a/launcher/app/src/main/res/values-iw/strings.xml
+++ b/launcher/app/src/main/res/values-iw/strings.xml
@@ -147,4 +147,5 @@
<string name="race_countdown_hours">%1$d שע׳ %2$d דק׳</string>
<string name="race_countdown_days">%1$d ימ׳ %2$d שע׳</string>
<string name="last_opened">פתיחה אחרונה: %1$s</string>
+ <string name="game_live">בשידור חי עכשיו</string>
</resources>
diff --git a/launcher/app/src/main/res/values-ko/strings.xml b/launcher/app/src/main/res/values-ko/strings.xml
index 584435ddb..a2336606e 100644
--- a/launcher/app/src/main/res/values-ko/strings.xml
+++ b/launcher/app/src/main/res/values-ko/strings.xml
@@ -146,4 +146,5 @@
<string name="race_countdown_days">%1$d일 %2$d시간</string>
<!-- Cinematic top shelf (cinematic_home): %1$s is when it was last opened, e.g. "5분 전". -->
<string name="last_opened">마지막 실행 %1$s</string>
+ <string name="game_live">지금 생중계</string>
</resources>
diff --git a/launcher/app/src/main/res/values-nb/strings.xml b/launcher/app/src/main/res/values-nb/strings.xml
index 530fd23e7..4dce56ca1 100644
--- a/launcher/app/src/main/res/values-nb/strings.xml
+++ b/launcher/app/src/main/res/values-nb/strings.xml
@@ -110,4 +110,5 @@
<string name="race_live">%1$s · direkte</string>
<string name="race_finished">Målgang</string>
<string name="last_opened">Sist åpnet %1$s</string>
+ <string name="game_live">Direkte nå</string>
</resources>
diff --git a/launcher/app/src/main/res/values-nl/strings.xml b/launcher/app/src/main/res/values-nl/strings.xml
index d3ca7a44a..811b2a10f 100644
--- a/launcher/app/src/main/res/values-nl/strings.xml
+++ b/launcher/app/src/main/res/values-nl/strings.xml
@@ -111,4 +111,5 @@
<string name="race_live">%1$s · live</string>
<string name="race_finished">Geblokte vlag</string>
<string name="last_opened">Laatst geopend %1$s</string>
+ <string name="game_live">Nu live</string>
</resources>
diff --git a/launcher/app/src/main/res/values-pl/strings.xml b/launcher/app/src/main/res/values-pl/strings.xml
index 9479b700d..4623c0621 100644
--- a/launcher/app/src/main/res/values-pl/strings.xml
+++ b/launcher/app/src/main/res/values-pl/strings.xml
@@ -95,4 +95,5 @@
<item quantity="other">%1$d aplikacji</item>
</plurals>
<string name="greeting_with_name">%1$s, %2$s</string>
+ <string name="game_live">Na żywo</string>
</resources>
diff --git a/launcher/app/src/main/res/values-pt-rPT/strings.xml b/launcher/app/src/main/res/values-pt-rPT/strings.xml
index 838471203..fa6029f73 100644
--- a/launcher/app/src/main/res/values-pt-rPT/strings.xml
+++ b/launcher/app/src/main/res/values-pt-rPT/strings.xml
@@ -10,4 +10,5 @@
<string name="tile_replace_in_dock">Substituir por outra app</string>
<string name="dock_edit_pick_place">Escolha o lugar da dock para esta app e prima OK. Voltar para cancelar.</string>
<string name="more_inputs">Mais entradas</string>
+ <string name="game_live">Em direto</string>
</resources>
diff --git a/launcher/app/src/main/res/values-pt/strings.xml b/launcher/app/src/main/res/values-pt/strings.xml
index 585820b8f..669ee78b2 100644
--- a/launcher/app/src/main/res/values-pt/strings.xml
+++ b/launcher/app/src/main/res/values-pt/strings.xml
@@ -147,4 +147,5 @@
<string name="race_countdown_hours">%1$dh %2$dmin</string>
<string name="race_countdown_days">%1$dd %2$dh</string>
<string name="last_opened">Aberto %1$s</string>
+ <string name="game_live">Ao vivo agora</string>
</resources>
diff --git a/launcher/app/src/main/res/values-ru/strings.xml b/launcher/app/src/main/res/values-ru/strings.xml
index 70129fd94..adadf9adc 100644
--- a/launcher/app/src/main/res/values-ru/strings.xml
+++ b/launcher/app/src/main/res/values-ru/strings.xml
@@ -150,4 +150,5 @@
<!-- Cinematic top shelf (cinematic_home): the line under the focused dock app's name; %1$s is when it was
last opened, e.g. "5 minutes ago" or "yesterday, 9:40 pm". -->
<string name="last_opened">Последний запуск: %1$s</string>
+ <string name="game_live">Сейчас в эфире</string>
</resources>
diff --git a/launcher/app/src/main/res/values-th/strings.xml b/launcher/app/src/main/res/values-th/strings.xml
index fa71760ab..c0fec2c8a 100644
--- a/launcher/app/src/main/res/values-th/strings.xml
+++ b/launcher/app/src/main/res/values-th/strings.xml
@@ -67,4 +67,5 @@
<item quantity="other">%1$d แอป</item>
</plurals>
<string name="greeting_with_name">%1$s %2$s</string>
+ <string name="game_live">กำลังถ่ายทอดสด</string>
</resources>
diff --git a/launcher/app/src/main/res/values-tr/strings.xml b/launcher/app/src/main/res/values-tr/strings.xml
index dae115606..a3ebd4e15 100644
--- a/launcher/app/src/main/res/values-tr/strings.xml
+++ b/launcher/app/src/main/res/values-tr/strings.xml
@@ -93,4 +93,5 @@
<item quantity="other">%1$d uygulama</item>
</plurals>
<string name="greeting_with_name">%1$s, %2$s</string>
+ <string name="game_live">Şimdi canlı</string>
</resources>
diff --git a/launcher/app/src/main/res/values-uk/strings.xml b/launcher/app/src/main/res/values-uk/strings.xml
index e244b1104..31e5a3862 100644
--- a/launcher/app/src/main/res/values-uk/strings.xml
+++ b/launcher/app/src/main/res/values-uk/strings.xml
@@ -149,4 +149,5 @@
<!-- Cinematic top shelf (cinematic_home): the line under the focused dock app's name; %1$s is when it was
last opened, e.g. "5 minutes ago" or "yesterday, 9:40 pm". -->
<string name="last_opened">Востаннє відкрито %1$s</string>
+ <string name="game_live">Наживо зараз</string>
</resources>
diff --git a/launcher/app/src/main/res/values-uz/strings.xml b/launcher/app/src/main/res/values-uz/strings.xml
index 60c122c90..bf0ad4ff5 100644
--- a/launcher/app/src/main/res/values-uz/strings.xml
+++ b/launcher/app/src/main/res/values-uz/strings.xml
@@ -110,4 +110,5 @@
<string name="race_live">%1$s · jonli</string>
<string name="race_finished">Marra</string>
<string name="last_opened">Oxirgi marta ochilgan: %1$s</string>
+ <string name="game_live">Hozir jonli</string>
</resources>
diff --git a/launcher/app/src/main/res/values-vi/strings.xml b/launcher/app/src/main/res/values-vi/strings.xml
index 342b6c985..1546901db 100644
--- a/launcher/app/src/main/res/values-vi/strings.xml
+++ b/launcher/app/src/main/res/values-vi/strings.xml
@@ -121,4 +121,5 @@
<string name="race_countdown_days">%1$d ngày %2$d giờ</string>
<string name="last_opened">Mở lần cuối %1$s</string>
<string name="tile_move">Di chuyển</string>
+ <string name="game_live">Đang diễn ra</string>
</resources>
diff --git a/launcher/app/src/main/res/values-zh-rCN/strings.xml b/launcher/app/src/main/res/values-zh-rCN/strings.xml
index a1dedf8b5..2444a50ef 100644
--- a/launcher/app/src/main/res/values-zh-rCN/strings.xml
+++ b/launcher/app/src/main/res/values-zh-rCN/strings.xml
@@ -146,4 +146,5 @@
<string name="tile_add_to_dock">添加到程序坞</string>
<string name="tile_move">移动</string>
<string name="tile_replace_in_dock">替换为其他应用</string>
+ <string name="game_live">直播中</string>
</resources>
\ No newline at end of file
diff --git a/launcher/app/src/main/res/values-zh-rTW/strings.xml b/launcher/app/src/main/res/values-zh-rTW/strings.xml
index 91c65b58f..8cff1e8a0 100644
--- a/launcher/app/src/main/res/values-zh-rTW/strings.xml
+++ b/launcher/app/src/main/res/values-zh-rTW/strings.xml
@@ -93,4 +93,5 @@
<item quantity="other">%1$d 個應用程式</item>
</plurals>
<string name="greeting_with_name">%1$s,%2$s</string>
+ <string name="game_live">直播中</string>
</resources>
diff --git a/launcher/app/src/main/res/values/strings.xml b/launcher/app/src/main/res/values/strings.xml
index ca0065523..e65576620 100644
--- a/launcher/app/src/main/res/values/strings.xml
+++ b/launcher/app/src/main/res/values/strings.xml
@@ -152,4 +152,6 @@
<!-- Cinematic top shelf (cinematic_home): the line under the focused dock app's name; %1$s is when it was
last opened, e.g. "5 minutes ago" or "yesterday, 9:40 pm". -->
<string name="last_opened">Last opened %1$s</string>
+ <!-- game_day: a game on now, in the race panel. -->
+ <string name="game_live">Live now</string>
</resources>