Skip to content

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

launcher: Reorder apps in the top_menu gear, and show_inputs_pill false leaves Inputs out of it

fgeanlopesab73a767ac14
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 40bee3844..7ee2805da 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@ -612,6 +612,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
btnReorder.setVisibility(cfg.reorderButton ? View.VISIBLE : View.GONE);
if (!cfg.showNetworkPill) btnWifi.setVisibility(View.GONE);
showInputsPill = cfg.showInputsPill;
+ showInputsMenuRow = cfg.showInputsPill;
btnLibraryTop = findViewById(R.id.btnLibraryTop);
btnLibraryTop.setOnClickListener(v -> {
onLibraryRequested();
@@ -2450,6 +2451,8 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
private boolean iconOnlyButtons;
/** config.xml top_menu: Inputs, Wi-Fi and Settings folded into one gear. */
private boolean topMenu;
+ /** show_inputs_pill as configured: top_menu clears showInputsPill, so its Inputs row reads this. */
+ private boolean showInputsMenuRow = true;
private boolean launcherSettingsButton;
/** icon_only_buttons without wifi_label_width: the Wi-Fi pill shows no network name. */
private boolean wifiIconOnly;
@@ -2906,7 +2909,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
LinearLayout rows = panel.findViewById(R.id.rows);
PopupWindow popup = glassPopup(panel, (int) (220 * density));
// Inputs opens its own list once this one has closed.
- addInputRow(rows, popup, R.drawable.ic_input, getString(R.string.inputs), -1, () -> root.post(this::showInputs));
+ if (showInputsMenuRow) addInputRow(rows, popup, R.drawable.ic_input, getString(R.string.inputs), -1, () -> root.post(this::showInputs));
addInputRow(rows, popup, R.drawable.ic_wifi, getString(R.string.quick_network), -1, this::openNetworkPill);
CharSequence network = wifiIconOnly ? btnWifi.getContentDescription() : btnWifi.getText();
if (!TextUtils.isEmpty(network)) {
@@ -2914,6 +2917,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
status.setText(network);
status.setVisibility(View.VISIBLE);
}
+ addInputRow(rows, popup, R.drawable.ic_swap_vert, getString(R.string.reorder), -1, this::toggleReorder);
if (launcherSettingsButton) {
addInputRow(rows, popup, R.drawable.ic_home_settings_pill, getString(R.string.launcher_settings), -1,
() -> startActivityForResult(new Intent(this, LauncherSettingsActivity.class), LAUNCHER_SETTINGS_REQUEST));
diff --git a/themes/README.md b/themes/README.md
index ec07d76ba..bb7a174dc 100644
--- a/themes/README.md
+++ b/themes/README.md
@@ -55,10 +55,10 @@ A new key needs one there in the same pull request.
| `dock_row` | bool | The dock as its own row with a band (`true`); `false` makes the dock apps the first tiles of one plain grid |
| `reorder_button` | bool | A reorder button in the top bar (`false` by default); reordering is always in the Settings button's long-press menu |
| `show_network_pill` | bool | The Wi-Fi/Ethernet pill in the top bar (`true` by default); `false` hides it |
-| `show_inputs_pill` | bool | The Inputs pill in the top bar, shown when the TV has inputs (`true` by default); `false` hides it; what the remote's Input button does is unchanged |
+| `show_inputs_pill` | bool | The Inputs pill in the top bar, shown when the TV has inputs (`true` by default); `false` hides it, and with `top_menu` it also leaves Inputs out of the gear's menu (streamers with no HDMI input, such as the Chromecast with Google TV); what the remote's Input button does is unchanged |
| `icon_only_buttons` | bool | Wi-Fi and Settings as round icon buttons; Inputs keeps its label (`false` by default) |
| `icon_only_inputs` | bool | The Inputs pill as a round icon button too, its label kept as the TalkBack description (`false` by default). Works with or without `icon_only_buttons` |
-| `top_menu` | bool | Inputs, Wi-Fi and Settings folded into one round gear, centred on the header: OK drops a menu with the three, hold OK keeps the launcher menu (`false` by default) |
+| `top_menu` | bool | Inputs, Wi-Fi and Settings folded into one round gear, centred on the header: OK drops a menu with the three plus Reorder apps, hold OK keeps the launcher menu (`false` by default) |
| `launcher_settings_button` | bool | Make the header Settings action open Launcher settings directly with a matching 22dp home icon; also changes the Settings row when `top_menu` is on. Hold OK keeps module-card and ordering tools. The settings page includes Reorder apps and TV settings (`false` by default) |
| `wifi_status_color` | bool | The Wi-Fi pill's icon green while the TV is online, white while it is not (`false` by default) |
| `wifi_label_width` | 0 to 300 | With `icon_only_buttons`, keep the network name on the Wi-Fi pill up to this width in dp, cut with an ellipsis; 0 leaves only the icon |