Skip to content

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

launcher: no connection state on AV rows in the Inputs menu

www-r3m1x0a9c3901b313
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 7597e0e60..faae02be5 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@ -2197,7 +2197,9 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
// The name given in Settings > Inputs (e.g. "MacBook Pro") goes first, the port after it.
if (named) label = custom + " \u00B7 " + label;
final String id = info.getId();
- int state = hdmi && hdmiStateBogus ? -1 : tim.getInputState(id);
+ // Analog AV jacks have no hotplug detection, and some TVs report them as always connected
+ // (TCL Smart TV Pro G03 says "Connected" with nothing plugged in), so AV rows show no state.
+ int state = !hdmi || hdmiStateBogus ? -1 : tim.getInputState(id);
addInputRow(rows, popup, hdmi ? R.drawable.ic_input : R.drawable.ic_av, label, state,
() -> openInput(id));
}