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.

Remote: the D-pad's gap gives way before the pad on a short phone

jesse-agent-23276649518ef2b
diff --git a/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt b/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
index 34d5e22..d4a4ebe 100644
--- a/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
+++ b/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
@@ -244,12 +244,13 @@ fun RemoteScreen(
Modifier.weight(1f).alpha(if (live) 1f else 0.38f),
horizontalAlignment = Alignment.CenterHorizontally,
) {
- BoxWithConstraints(Modifier.weight(1f).fillMaxWidth().padding(vertical = 12.dp), contentAlignment = Alignment.Center) {
+ BoxWithConstraints(Modifier.weight(1f).fillMaxWidth(), contentAlignment = Alignment.Center) {
val room = minOf(maxWidth, maxHeight)
val short = room < DPAD_MIN
val hintFits = room >= DPAD_MIN + 24.dp
LaunchedEffect(short, hintFits) { if (short) tight = true else if (hintFits) tight = false }
- DPad(live, actions.press, room.coerceIn(DPAD_MIN, DPAD_MAX))
+ // 12 dp clear above and below while there's room; the gap gives way before the pad does.
+ DPad(live, actions.press, (room - 24.dp).coerceIn(DPAD_MIN, DPAD_MAX))
}
Box(Modifier.fillMaxWidth(), contentAlignment = Alignment.Center) {
RoundKey(RemoteKey.BACK, "Back", live, actions.press, Modifier.align(Alignment.CenterStart)) { Icon(Icons.AutoMirrored.Filled.ArrowBack, null) }