[PM-28834] bug: Setting configuration for VR devices on MainActivity#6563
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6563 +/- ##
==========================================
- Coverage 85.80% 85.69% -0.12%
==========================================
Files 835 839 +4
Lines 59391 59490 +99
Branches 8668 8672 +4
==========================================
+ Hits 50963 50977 +14
- Misses 5441 5524 +83
- Partials 2987 2989 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| override fun onPostCreate(savedInstanceState: Bundle?) { | ||
| super.onPostCreate(savedInstanceState) | ||
| // resize only one time at the start | ||
| if (!mainViewModel.stateFlow.value.hasResizeBeenRequested) { |
There was a problem hiding this comment.
So if the activity is recreated, we still don't want to make the request again?
There was a problem hiding this comment.
yes, that is the intended behaviour, resize request runs only once during startup, after the UI is created, and not in response to user-driven panel resizing.
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR adds HorizonOS (Meta Quest) device detection and requests a 1024×640 window resize via reflection during Code Review DetailsNo new findings from this review pass. Three existing unresolved threads from
|

🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-28834
📔 Objective
Set the configuration on MainActivity so that it appears properly on HorizonOS devices.