🔧 fix: search sheet overlapped by keyboard#266
Conversation
ModalBottomSheet renders in a Popup window which doesn't receive IME insets, so imePadding() was always 0 inside it. Replaced with custom inline bottom sheet rendered in the activity layout so IME insets work properly. Also fixed back press to dismiss sheet when keyboard hidden.
There was a problem hiding this comment.
rbelem has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughSearchSheet is refactored from Material 3 ModalBottomSheet to a custom AnimatedVisibility overlay with IME-aware keyboard handling. The App.kt callsite is updated to omit the removed sheetState parameter, and AndroidManifest.xml enables soft-input resizing for MainActivity. ChangesSearchSheet IME Overlay Refactor and Manifest Configuration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
I don't think a custom implementation is needed here. I can't reproduce the issues with searchsheet this is supposed to fix |





ModalBottomSheet renders in a Popup window which doesn't receive IME insets, so imePadding() was always 0 inside it. Replaced with custom inline bottom sheet rendered in the activity layout so IME insets work properly. Also fixed back press to dismiss sheet when keyboard hidden.
Summary by CodeRabbit
Bug Fixes
UI/UX Improvements