Skip to content

Debloat your Android TV, install apps, browse and transfer files on it, all from your phone. Just 3 MB, no tracking, no root, no PC.

Off Wi-Fi, Reconnect on Overview opens the Wi-Fi panel

jesse-agent-23284f152e21418
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a0a8fc4..fd19b3a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,7 +12,7 @@ until this file has a section for its version.
## Unreleased
-- **Fixed:** Off Wi-Fi, the TV tabs and failed sends blame the phone, not the TV. [#313](../../pull/313)
+- **Fixed:** Off Wi-Fi, the TV tabs and failed sends blame the phone, not the TV, and Reconnect on Overview opens the Wi-Fi panel. [#313](../../pull/313)
- **Fixed:** On a Fire TV or another HDMI box whose volume is fixed, the Remote's mute and volume keys are grayed out, with a line saying to use the TV's own remote. [#307](../../pull/307)
- **Fixed:** On the Remote, a perfectly still tap on empty space now closes the keyboard. [#300](../../pull/300)
- **Fixed:** Sending or installing a file picked from phone storage no longer drops the TV. [#301](../../pull/301)
diff --git a/app/src/main/java/app/tellyscope/MainActivity.kt b/app/src/main/java/app/tellyscope/MainActivity.kt
index 372da9e..b4a8c14 100644
--- a/app/src/main/java/app/tellyscope/MainActivity.kt
+++ b/app/src/main/java/app/tellyscope/MainActivity.kt
@@ -408,6 +408,7 @@ fun TellyscopeApp(vm: TellyscopeViewModel) {
debloatGateOff = vm::debloatGateOff,
undo = vm::undo,
reconnect = { state.selectedId?.let(vm::reconnect) },
+ openWifi = { context.openWifiSettings() },
forget = vm::forget,
rename = vm::rename,
restoreAll = vm::restoreAll,
diff --git a/app/src/main/java/app/tellyscope/ui/DeviceScreen.kt b/app/src/main/java/app/tellyscope/ui/DeviceScreen.kt
index 43f92ab..5bb77a6 100644
--- a/app/src/main/java/app/tellyscope/ui/DeviceScreen.kt
+++ b/app/src/main/java/app/tellyscope/ui/DeviceScreen.kt
@@ -91,6 +91,8 @@ data class DeviceActions(
val debloatGateOff: () -> Unit = {},
val undo: (HistoryEntry) -> Unit = {},
val reconnect: () -> Unit = {},
+ /** Opens the system Wi-Fi panel: Reconnect does this while the phone is off Wi-Fi. */
+ val openWifi: () -> Unit = {},
val forget: (String) -> Unit = {},
val rename: (String, String?) -> Unit = { _, _ -> },
val restoreAll: () -> Unit = {},
diff --git a/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt b/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt
index 73c4db7..e526e80 100644
--- a/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt
+++ b/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt
@@ -311,7 +311,7 @@ fun DeviceTabsScreen(
} else if (device.state == DeviceState.NotAllowed) {
item { NotAllowedCard(actions.reconnect) }
} else if (offline) {
- item { OfflineCard(device, state.clock(), offWifi, actions.reconnect) }
+ item { OfflineCard(device, state.clock(), offWifi, if (offWifi) actions.openWifi else actions.reconnect) }
}
// A switch that left the launcher's service off: Home may go back to the TV's own.
ui.apps.firstOrNull { it.homeServiceNote }?.takeIf { !offline }?.let { a ->