Skip to content

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

Launcher: game_day's turns hide the empty session line, so the dots sit under the countdown

Justin Newman21efbcdde89d
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 2d954a738..84a654a3d 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@ -2590,6 +2590,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
GameDay.Turn t = turns.get(on);
if (t.f1) {
raceBar.setBackgroundResource(R.drawable.race_bar);
+ raceSessions.setVisibility(View.VISIBLE);
updateRace();
} else {
GradientDrawable bar = new GradientDrawable();
@@ -2605,7 +2606,8 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
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("");
+ // No session times for a game: the line takes no room, so the dots sit under the countdown.
+ raceSessions.setVisibility(View.GONE);
racePanel.setVisibility(View.VISIBLE);
}
showPager(turns.size(), on);