hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel d3199b7b1c
android keyboard: the bottom row isn't cut off in landscape with gesture navigation (#2734)
KeyboardView pads itself by the system bars' bottom inset (48 dp under gesture navigation on
Android 14+, the IME's caption bar) so the keys stay above it. After a rotation the new view is
measured once before its insets arrive, the window is sized to the unpadded 212 dp, and the
insets then arrive inside that same layout pass: every later measure is capped at the window's
height, so the padding squeezes the keys and the bottom row (?123, space, return) is clipped or
gone, with a plain band of the inset's height below. A tester's realme RMX3750 showed it with a
smaller inset. The listener now pads only when the insets change and lays out again after the
pass, so the window grows to include them.

Verified on an API 36 emulator (1080 x 2400, 420 and 400 dpi, Contacts' edit field): with
gesture navigation after a rotation, the window was 557 px (212 dp) and the bottom row gone;
now 683 px with all four rows and the IME's back and switcher buttons below. 3-button
navigation, display cutouts (tall, double, corner, waterfall) and the first show were already
right and are unchanged. ./gradlew :app:testDebugUnitTest passes (194 tests).
2026-11-24 12:11:04 -05:00
..
src android keyboard: the bottom row isn't cut off in landscape with gesture navigation (#2734) 2026-11-24 12:11:04 -05:00
build.gradle.kts Android: Labs › Diagnostics, a copyable report and speed test for testers' phones (#2720) 2026-11-24 11:34:28 -05:00
proguard-rules.pro Hex for Android: on-device dictation keyboard (#2074) 2026-11-20 17:27:17 +00:00