Skip to content

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

Merge PR #1038: Launcher: wifi_status_color, to show the Wi-Fi icon green while the TV is online

Gathin23ce9c802e0ea1
diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.java
index 53a6457c4,a5714ab04..9833b2dc6
--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java
@@@ -175,10 -175,8 +175,12 @@@ final class Config
final boolean dockGlass;
/** The dock band's padding equals the gap between its tiles (config.xml, dock_even_padding); false keeps the fixed padding. */
final boolean dockEvenPadding;
+ /** The dock position dots under the cinematic shelf's name (config.xml, cinematic_dots); false leaves them out. */
+ final boolean cinematicDots;
+ /** The cinematic shelf keeps the white focus highlight instead of the app's colour (config.xml, cinematic_white_focus). */
+ final boolean cinematicWhiteFocus;
+ /** The Wi-Fi pill's icon green while the TV is online (config.xml, wifi_status_color); false keeps it white. */
+ final boolean wifiStatusColor;
/** Shape of the glow behind the focused app (config.xml, glow_style): {@link #GLOW_RADIAL} or {@link #GLOW_HORIZON}. */
final String glowStyle;
@@@ -202,7 -200,7 +204,7 @@@
Festival festival, int[] inputKeycodes, List<String> appKeys, String stockHomeRedirect,
List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, boolean appGlow, int homeIdleClockMinutes,
boolean keyFilter, boolean dockGlass, String glowStyle, boolean wallpaperCaptions,
- boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicDots, boolean cinematicWhiteFocus) {
- boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean wifiStatusColor) {
++ boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicDots, boolean cinematicWhiteFocus, boolean wifiStatusColor) {
this.handleViewInputs = handleViewInputs;
this.tileMenu = tileMenu;
this.inputKeycodes = inputKeycodes;
@@@ -273,8 -271,7 +275,9 @@@
this.homeIdleClockMinutes = homeIdleClockMinutes;
this.dockGlass = dockGlass;
this.dockEvenPadding = dockEvenPadding;
+ this.cinematicDots = cinematicDots;
+ this.cinematicWhiteFocus = cinematicWhiteFocus;
+ this.wifiStatusColor = wifiStatusColor;
this.glowStyle = glowStyle(glowStyle);
this.wallpaperCaptions = wallpaperCaptions;
}
@@@ -352,8 -349,7 +355,9 @@@
boolean keyFilter = res.getBoolean(R.bool.key_filter);
boolean dockGlass = res.getBoolean(R.bool.dock_glass);
boolean dockEvenPadding = res.getBoolean(R.bool.dock_even_padding);
+ boolean cinematicDots = res.getBoolean(R.bool.cinematic_dots);
+ boolean cinematicWhiteFocus = res.getBoolean(R.bool.cinematic_white_focus);
+ boolean wifiStatusColor = res.getBoolean(R.bool.wifi_status_color);
String glowStyle = res.getString(R.string.glow_style);
boolean applied = false;
@@@ -424,8 -420,7 +428,9 @@@
keyFilter = bool(json, "key_filter", keyFilter);
dockGlass = bool(json, "dock_glass", dockGlass);
dockEvenPadding = bool(json, "dock_even_padding", dockEvenPadding);
+ cinematicDots = bool(json, "cinematic_dots", cinematicDots);
+ cinematicWhiteFocus = bool(json, "cinematic_white_focus", cinematicWhiteFocus);
+ wifiStatusColor = bool(json, "wifi_status_color", wifiStatusColor);
glowStyle = string(json, "glow_style", glowStyle);
}
// A theme push or reset invalidates choices made on the TV. On first use, remember the
@@@ -480,7 -475,7 +485,7 @@@
Math.max(0, Math.min(100, skyIntensity)), settingsKeycodes, settingsKeyPanel, restoreKeyServices, wallpaperEnabled, wallpaper,
wallpapers, rotationMinutes, wallpaperDim, dockOpacity, wallpaperOrder, applied,
festival, inputKeycodes, appKeys, stockHomeRedirect, json == null ? Collections.emptyList() : raceCalendar(json), cinematic, ambientGlow, appGlow,
- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus);
- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, wifiStatusColor);
++ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor);
}
/**