Skip to content

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

Launcher: the dock glow comes back when Home is pressed twice during its fade-in

Vojtěch Adamb17438ab8476
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 a5acd794b..82867ed81 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@ -1777,6 +1777,12 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
}
} else {
hero.setY(y);
+ // onPause cancels the fade-ins, and a second Home during one lands on the same tile, which starts none:
+ // finish them, or the shelf and the glow stay dim until focus moves to another app.
+ if (hero.getAlpha() < 1f) hero.animate().alpha(1f).setDuration(260).start();
+ if (ambientGlow && color == ambientColor && ambient.getAlpha() < 1f) {
+ ambient.animate().alpha(1f).setDuration(600).start();
+ }
}
}