Skip to content

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

Launcher: give each top_bar_apps button its own id

benny1179744140b3091
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 aaf521c5f..6080c4a69 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@ -2170,6 +2170,8 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
continue;
}
TextView button = (TextView) getLayoutInflater().inflate(R.layout.top_app_button, bar, false);
+ // pillKeys finds the bar's ends by id: without one of its own, every app button would be an end.
+ button.setId(View.generateViewId());
logo.setBounds(0, 0, size, size);
button.setCompoundDrawablesRelative(logo, null, null, null);
button.setCompoundDrawableTintList(null);