ADFA-3084 | Respect system screen orientation lock#1050
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 Walkthrough
WalkthroughReplaced the orientation mode constant in the adaptive orientation setter: switched from sensor-driven orientation to user-preference-driven orientation by changing Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 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 Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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 |
3d6e911 to
e2a3542
Compare
Update OrientationUtilities to use SCREEN_ORIENTATION_USER instead of SENSOR.
e2a3542 to
8de546a
Compare
Description
Updated
setAdaptiveOrientationinOrientationUtilities.ktto useActivityInfo.SCREEN_ORIENTATION_USERinstead ofSCREEN_ORIENTATION_SENSOR. This ensures the application correctly respects the user's system-level screen rotation lock settings rather than forcing rotation based purely on device hardware sensors.Details
Before fix
Before.fix.mov
After fix
After.fix.mov
Ticket
ADFA-3084
Observation
This fixes the bug where the application would rotate in landscape mode even if the user explicitly locked the device's orientation.