Skip to content

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

Merge remote-tracking branch 'origin/main' into perf/home-refresh

sim49d29aafe47c
diff --cc launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
index 4d2d35cb7,90eec8f64..bd82d79b8
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@@ -677,19 -685,12 +696,20 @@@ public class MainActivity extends Activ
restartIdleClock();
promptsPaused = false;
if (grid.getAdapter() == null) grid.setAdapter(adapter); // dropped by onTrimMemory
- if (rebuildOnResume) {
- tilesReady = false;
- reloadApps(true);
+ switch (tileRefresh.onResume(packagesChangedSinceRebuild())) {
+ case REBUILD:
+ tilesReady = false;
+ reloadApps(true);
+ break;
+ case REFOCUS:
+ // The same tiles: only the focus goes back, as after a rebuild, without replaying the entrance.
+ tilesReady = false;
+ reloadApps(true, false, false);
+ break;
+ default:
+ break;
}
- rebuildOnResume = false;
+ if (openLiveTvAfterBoot()) return;
updateGreeting();
updateRace();
// The network and Inputs pills keep their state while Home is in the background, and callbacks update them