Skip to content

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

Merge PR #2419: Launcher: Home runs "hold:" app_keys entries for vendor keys

Gathin23bac0c00ca9f4
diff --cc launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
index 7a7dfdf5e,fe0067441..02c1ba4d3
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@@ -422,8 -422,7 +422,9 @@@ public class MainActivity extends Activ
};
private java.util.Map<Integer, String> homeAppKeys = java.util.Collections.emptyMap();
+ /** clock_format, for the race panel's session times (the TextClocks take it in onCreate). */
+ private String clockFormat = "system";
+ private java.util.Map<Integer, String> homeHoldAppKeys = java.util.Collections.emptyMap();
@Override
protected void onCreate(Bundle savedInstanceState) {
@@@ -433,8 -432,7 +434,9 @@@
// config.xml, overlaid by config.json from a pushed theme (see Config and tools/theme.sh).
Config cfg = Config.load(this);
homeAppKeys = RemoteKeys.parseAppKeys(cfg.appKeys);
+ clockFormat = cfg.clockFormat;
+ ClockFormat.apply(getWindow().getDecorView(), clockFormat);
+ homeHoldAppKeys = RemoteKeys.parseHoldAppKeys(cfg.appKeys);
appLibrarySelection = cfg.appLibrarySelection;
libraryOkOpens = cfg.libraryOkOpens;
// restore_key_services: after a force stop, put back the remote's accessibility helpers that Android took