Conversation
ashok672
left a comment
There was a problem hiding this comment.
Make sure the changes work for SDK < 35 as well.
There was a problem hiding this comment.
Pull Request Overview
This PR enables Android edge-to-edge support for the embedded webview activity to address UI layout issues on API 34/35 devices.
- Enables edge-to-edge by disabling decorFitsSystemWindows on API 30+.
- Applies system window/IME insets to the WebView via an AndroidX WindowInsets listener.
- Makes status and navigation bars transparent on API 35+.
...t/Microsoft.Identity.Client/Platforms/Android/EmbeddedWebview/AuthenticationAgentActivity.cs
Show resolved
Hide resolved
...t/Microsoft.Identity.Client/Platforms/Android/EmbeddedWebview/AuthenticationAgentActivity.cs
Outdated
Show resolved
Hide resolved
...t/Microsoft.Identity.Client/Platforms/Android/EmbeddedWebview/AuthenticationAgentActivity.cs
Show resolved
Hide resolved
...t/Microsoft.Identity.Client/Platforms/Android/EmbeddedWebview/AuthenticationAgentActivity.cs
Outdated
Show resolved
Hide resolved
gladjohn
left a comment
There was a problem hiding this comment.
thanks for addressing the comments. please make sure to test this well with different themes. If the status/nav bars are transparent, icons can become unreadable depending on theme and WebView content background.
|
@fengga - ready to merge? |
Thanks, @bgavrilMS! And sorry for the late, I was involved in some higher priority issues last week. |

Fixes #
ICM: https://portal.microsofticm.com/imp/v5/incidents/details/687314906/summary
When running on API 35 devices the UI looks weird due to edge to edge scenarios.
Before:

After:

I tested API 34 and 35 works fine.
Changes proposed in this request
Testing
Performance impact
Documentation