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.

Close the keyboard only on a real lift, not on a drag

jesse-agent-232a1352627f30e
diff --git a/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt b/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
index eeebd48..da7c4e8 100644
--- a/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
+++ b/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
@@ -260,8 +260,8 @@ fun RemoteScreen(
awaitEachGesture {
val down = awaitFirstDown(requireUnconsumed = false, pass = PointerEventPass.Initial)
if (field.contains(origin + down.position)) return@awaitEachGesture
- waitForUpOrCancellation(PointerEventPass.Initial)
- focus.clearFocus()
+ // Null when something else took the gesture, a drag of the sheet: leave the keyboard be.
+ if (waitForUpOrCancellation(PointerEventPass.Initial) != null) focus.clearFocus()
}
},
) {