Skip to content

fix(android): Samsung Android 16 gesture keyboard height - #1

Open
zenipchen wants to merge 1 commit into
mainfrom
fix/android-samsung-keyboard-height-android16
Open

fix(android): Samsung Android 16 gesture keyboard height#1
zenipchen wants to merge 1 commit into
mainfrom
fix/android-samsung-keyboard-height-android16

Conversation

@zenipchen

@zenipchen zenipchen commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

修复三星 Android 16 全面屏手势下 keyboardHeightChange 高度偏小问题。

4 files, +128/-2(仅框架层,无 demo/docs 改动)

文件 改动
IKRKeyboardHeightAdapter.kt 适配器接口(业务可覆盖)
KRDefaultKeyboardHeightAdapter.kt 三星 API36 手势:raw + navigation_bar_height
KuiklyRenderAdapterManager.kt 注册点
KRKeyboardModule.kt 仅在 Android11PlusKeyboardWatcher 出口调用 adapter(+2 行逻辑)

逻辑

  • Module:ime - navadaptKeyboardHeight(raw)
  • Adapter:三星 + API36 + 手势 + raw>0raw + navigation_bar_height
  • raw=0:直接透传,不补偿

Test plan

  • SM-W9026 手势:键盘弹起高度正确,收起后 padding 归零
  • 非三星 / API<36:透传 raw,无行为变化

@zenipchen
zenipchen force-pushed the fix/android-samsung-keyboard-height-android16 branch from 4482b4a to 134dfec Compare July 7, 2026 08:28
Add keyboard height adapter hook and apply it in Android11PlusKeyboardWatcher.
Compensate Samsung full-screen gesture devices on API 36 with static navigation_bar_height.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zenipchen
zenipchen force-pushed the fix/android-samsung-keyboard-height-android16 branch from 134dfec to ab6744b Compare July 7, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant