Skip to content

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

Merge PR #288: launcher: reduced motion puts the focused tile's name below the zoomed tile

Gathin23f74dde744cf6
diff --cc launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
index 7130f2f2f,0ba0440ba..48c5cff1b
--- a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
@@@ -505,6 -470,9 +505,10 @@@ public class AppAdapter extends Recycle
.setInterpolator(new DecelerateInterpolator())
.withLayer().start();
name.animate().alpha(focused ? 1f : 0f).setDuration(100).start();
+ // Same place as the full motion's slide ends: the layout's -6dp is only its starting point, and
+ // left there the name overlaps the zoomed tile.
- name.setTranslationY(focused ? density * 4f : -density * 6f);
++ // Only on focus: snapping it back to -6dp while it fades out would jump it up over the tile.
++ if (focused) name.setTranslationY(density * 4f);
} else {
view.animate().scaleX(s).scaleY(s)
.translationY(focused && advancedEffects ? -4f * density : 0f)