Webview ignores actionBar?.hide()
Describe the bug
When using enableEdgeToEdge() the webview ignores actionBar?.hide().
Smartphone:
- Device: e.g. Medium Phone emulator (Android Studio)
- Android Version: API 36.0, Android 16.0
- Browser: Chrome
- MSAL Version: 6.2.0
To Reproduce
Steps to reproduce the behavior:
- enable edge to edge
- disable the action bar
- use the webview
Expected behavior
The action bar should be hidden in the Microsoft login webview, too (like for the rest of the app & other webviews).
Actual Behavior
The action bar is not hidden and makes the content of the login webview partially unreadable.
Screenshots
@RichardToowoxx , do you have any broker app like Company Portal/Authenticator/Link To Windows installed on your device? We have fixed the issue in brokered flows (when the broker app is installed).
@somalaya I don't have anything installed on the device, it's a plain, fresh Android emulator in Android Studio ("Medium Phone").
We use other libraries that open a webview, too, like KMPAuth and WebView for JetBrains Compose Multiplatform and for them no action bar is displayed when actionBar?.hide() is set in onCreate().
I managed to work around it by adding a android:theme="@android:style/Theme.Material.NoActionBar" to <application> in my AndroidManifest.xml.