Skip to content

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

Launcher: don't load a tile's icon when it has a banner

Riku Pirttinokkaee5dc4bbd518
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
index 11693851d..bc6a45247 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
@@ -264,7 +264,9 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
if (!seen.add(pkg + '\n' + label)) continue;
Drawable banner = bundledBanner(appBanners.get(pkg));
if (banner == null) banner = loadBanner(pm, ri);
- Drawable icon = ri.loadIcon(pm);
+ // The icon is only drawn (and sampled for the glow) when there is no banner, so a tile with a
+ // banner skips loading and decoding it.
+ Drawable icon = banner == null ? ri.loadIcon(pm) : null;
if (card != null) {
fresh.add(new Entry(Entry.CARD, label, component, banner, icon, card.caption, card.accent));
} else {