SystemUI: Partially revert 718d6d6#21
Conversation
- Optimize split notification layout for regular screen
WalkthroughThe modifications in the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to path filters (4)
packages/SystemUI/res/layout/super_notification_shade.xmlis excluded by:!**/*.xmlpackages/SystemUI/res/values-land/dimens.xmlis excluded by:!**/*.xmlpackages/SystemUI/res/values-sw600dp-land/dimens.xmlis excluded by:!**/*.xmlpackages/SystemUI/res/values/attrs.xmlis excluded by:!**/*.xml
Files selected for processing (1)
- packages/SystemUI/src/com/android/systemui/scene/ui/view/WindowRootView.kt (3 hunks)
Additional comments: 1
packages/SystemUI/src/com/android/systemui/scene/ui/view/WindowRootView.kt (1)
- 104-108: The logic for updating margins based on
ignoreRightInsethas been simplified, which is a positive change for improving the layout's performance and appearance on standard-sized screens. However, it's important to ensure that this change does not inadvertently affect layouts that might rely on the previous behavior ofignoreRightInset. Specifically, the removal ofignoreLeftInsetand the simplification here could lead to different margin behaviors that were not intended or tested.Consider adding unit tests or UI tests to verify that the changes in margin handling do not negatively impact the layout of notifications or other UI elements within the
WindowRootView. This could involve testing with various screen sizes and configurations to ensure compatibility and the desired improvements in layout performance and appearance.Additionally, verify that the removal of
ignoreLeftInsetand the changes toignoreRightInsethandling are well-documented in the project's documentation or comments, to aid future developers in understanding the rationale behind these changes and how they should work with the updatedLayoutParams.
Summary by CodeRabbit