Fix scrolling UI error in PersonalID fragments#3556
Fix scrolling UI error in PersonalID fragments#3556OrangeAndGreen wants to merge 1 commit intomasterfrom
Conversation
📝 WalkthroughWalkthroughThe bottom padding calculation in the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
app/src/org/commcare/fragments/personalId/BasePersonalIdFragment.kt (1)
16-16:⚠️ Potential issue | 🟡 MinorRemove unused
import kotlin.math.maxThe
max(...)call was dropped on line 76, leaving this import dead.ktlintwill flag it under theno-unused-importsrule.🔧 Proposed fix
-import kotlin.math.maxAs per coding guidelines, ktlint compliance is required for
**/*.ktfiles. Runningktlint path/to/BasePersonalIdFragment.kt(orktlint --format) will surface and auto-remove this.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@app/src/org/commcare/fragments/personalId/BasePersonalIdFragment.kt` at line 16, Remove the unused import kotlin.math.max from BasePersonalIdFragment (file contains class BasePersonalIdFragment) because the max(...) call was removed; open BasePersonalIdFragment.kt, delete the import line "import kotlin.math.max" (or run ktlint --format on that file) to satisfy ktlint no-unused-imports rule and re-run linters to confirm.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@app/src/org/commcare/fragments/personalId/BasePersonalIdFragment.kt`:
- Line 16: Remove the unused import kotlin.math.max from BasePersonalIdFragment
(file contains class BasePersonalIdFragment) because the max(...) call was
removed; open BasePersonalIdFragment.kt, delete the import line "import
kotlin.math.max" (or run ktlint --format on that file) to satisfy ktlint
no-unused-imports rule and re-run linters to confirm.
https://dimagi.atlassian.net/browse/CCCT-2197
Product Description
Fixes a bug in the PersonalID fragments where on some devices the UI would shrink too much vertically when the keyboard appears.
Demo of the bug
Technical Summary
Trusting IME offset bottom instead of taking the max with system bar insets.
Feature Flag
None
Safety Assurance
Safety story
Tested locally, pending other dev testing to verify on devices that displayed the error.
Automated test coverage
None
QA Plan
None yet