Skip to content

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

Round AK fix for #2271: clock_format is a config.xml key too, "system" by default

Gathin23ddd741f39f1a
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/Config.java b/launcher/app/src/main/java/com/gathin/tvhome/Config.java
index 05dc839f6..86ccef2e1 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java
@@ -501,7 +501,7 @@ final class Config {
boolean homeLongPressHome = res.getBoolean(R.bool.home_long_press_home);
boolean powerOnHomeAlways = res.getBoolean(R.bool.power_on_home_always);
boolean inputsConnectedOnly = res.getBoolean(R.bool.inputs_connected_only);
- String clockFormat = "system";
+ String clockFormat = res.getString(R.string.clock_format);
boolean dockGlass = res.getBoolean(R.bool.dock_glass);
boolean dockEvenPadding = res.getBoolean(R.bool.dock_even_padding);
boolean dockBand = res.getBoolean(R.bool.dock_band);
diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xml
index 47fd26205..42b73d75f 100644
--- a/launcher/app/src/main/res/values/config.xml
+++ b/launcher/app/src/main/res/values/config.xml
@@ -315,6 +315,10 @@
up, the closed lock in a green outline while one is (solid green only while focused, like the pill). "VPN" /
"VPN off" become its talkback description. A theme can set "icon_only_vpn": true. -->
<bool name="icon_only_vpn">false</bool>
+ <!-- The launcher's clocks (Home, the clock screensaver and the Clock screen) in 12- or 24-hour time whatever the TV
+ is set to: "12", "24", or "system", the default, which follows the TV. Launcher settings' Clock row overrides
+ it, and a theme can set "clock_format": "24". -->
+ <string name="clock_format" translatable="false">system</string>
<!-- true colours the Wi-Fi pill's icon green while the TV is online and leaves it white while it is not (dark on
the focused pill either way), so the connection shows at a glance, also as an icon-only button. Can also be
set with "wifi_status_color": true in a theme's config.json. -->