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.
Pin the Apps tabs flush under the bar, and say why Running is empty offline
jesse-agent-2325b545f4a9df0
diff --git a/app/src/main/java/app/tellyscope/ui/Copy.kt b/app/src/main/java/app/tellyscope/ui/Copy.ktindex fe5d461..5a6f06b 100644--- a/app/src/main/java/app/tellyscope/ui/Copy.kt+++ b/app/src/main/java/app/tellyscope/ui/Copy.kt@@ -152,6 +152,9 @@ object Copy {const val SYSTEM = "System"const val SYSTEM_WHY = "Needed by the TV · can't be changed"+ /** Running, with no word from the TV. */+ const val RUNNING_OFFLINE = "Running apps show here once the TV is connected."+const val ANDROID_SYSTEM = AppNames.SYSTEM/** The word next to the status dot, so the state never rests on colour alone. */diff --git a/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt b/app/src/main/java/app/tellyscope/ui/DeviceTabs.ktindex 08c776b..219c240 100644--- a/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt+++ b/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt@@ -219,12 +219,13 @@ fun DeviceTabsScreen(LazyColumn(Modifier.fillMaxSize().padding(pad),state = list,- contentPadding = PaddingValues(start = 16.dp, end = 16.dp, top = 4.dp, bottom = 96.dp),+ // No top padding: the Apps tabs pin at the list's top edge, flush under the bar; the hero carries the 4dp.+ contentPadding = PaddingValues(start = 16.dp, end = 16.dp, bottom = 96.dp),verticalArrangement = Arrangement.spacedBy(12.dp),) {val snap = ui.snapshotval live = snap?.takeIf { !offline }- item(key = "hero") { TvHero(state, live, actions, chips = tab == TvTab.Overview, collapse = { collapse }, onHeight = { heroHeight = it }) }+ item(key = "hero") { Box(Modifier.padding(top = 4.dp)) { TvHero(state, live, actions, chips = tab == TvTab.Overview, collapse = { collapse }, onHeight = { heroHeight = it }) } }when (tab) {TvTab.Overview -> {val restart = state.restarting[device.id]@@ -280,7 +281,10 @@ fun DeviceTabsScreen(AppsTabRow(appsTab, lerp(MaterialTheme.colorScheme.surface, MaterialTheme.colorScheme.surfaceContainer, collapse), inset = 16.dp) { appsTab = it }}val split = splitApps(ui.apps, procs, appsTab)- if (split.apps.isEmpty() && split.system.isEmpty()) item { EmptyLine(q) }+ if (split.apps.isEmpty() && split.system.isEmpty()) item {+ // Away, the TV can't say what's running, rather than nothing is.+ if (appsTab == AppsTab.Running && live == null) Muted(Copy.RUNNING_OFFLINE) else EmptyLine(q)+ }rows(split.apps)if (split.system.isNotEmpty()) {val folded = appsTab in state.foldedSystemdiff --git a/app/src/test/java/app/tellyscope/ScreenshotTest.kt b/app/src/test/java/app/tellyscope/ScreenshotTest.ktindex 4a4a52d..6bd4d33 100644--- a/app/src/test/java/app/tellyscope/ScreenshotTest.kt+++ b/app/src/test/java/app/tellyscope/ScreenshotTest.kt@@ -310,7 +310,10 @@ class ScreenshotTest {@Test fun md3_apps_installed_dark() = appsTab("69_md3_apps_installed", true, "Installed")@Test fun md3_apps_builtin() = appsTab("70_md3_apps_builtin", false, "Built-in")@Test fun md3_apps_builtin_dark() = appsTab("70_md3_apps_builtin", true, "Built-in")- @Test fun md3_apps_offline() { shot("71_md3_apps_offline") { DeviceTabsScreen(offlineMd3(), DeviceActions(), startTab = TvTab.Apps) } }+ @Test fun md3_apps_offline() {+ shot("71_md3_apps_offline") { DeviceTabsScreen(offlineMd3(), DeviceActions(), startTab = TvTab.Apps) }+ compose.onNodeWithText(Copy.RUNNING_OFFLINE).assertExists()+ }@Test fun md3_apps_offline_dark() { shot("71_md3_apps_offline", dark = true) { DeviceTabsScreen(offlineMd3(), DeviceActions(), startTab = TvTab.Apps) } }// Folded, the System header stays with its count and the protected apps go.private fun foldedBuiltIn() = md3State().copy(foldedSystem = setOf(AppsTab.BuiltIn))