Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Aug 5, 2025

The layouts do not rely on alternate resource qualifiers, and any required UI adjustments are handled manually in the code. Therefore, it is acceptable to use: android:configChanges="orientation|screenSize" to prevent the system from recreating the activity on configuration changes.

Otherwise, if the layout depended on configuration-specific resources, such as different layouts for landscape mode or screen size variations, allowing the system to recreate the activity would be the preferred approach.

However, supporting this behavior would require restructuring the layout logic to make use of alternate resource directories, handling proper state restoration, and potentially rearchitecting parts of the UI to respond to different configurations.

Before

B4.mp4

After

A.mp4

Signed-off-by: alperozturk <[email protected]>
@AndyScherzinger AndyScherzinger merged commit d431fb8 into main Aug 5, 2025
14 checks passed
@AndyScherzinger AndyScherzinger deleted the bugfix/toolbar-visual-break branch August 5, 2025 13:09
@AndyScherzinger AndyScherzinger added this to the 4.5.0 milestone Aug 5, 2025
@AndyScherzinger
Copy link
Member

/backport to stable-4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants