Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Version used: stable 1.6.0
Devices/Android versions reproduced on: Pixel 4 API 33 (emulator)
I'm facing an issue that webview is resetting my ui theme while AppCompatDelegate.defaultNightMode was set to MODE_NIGHT_YES
I have an example of app that has two fragments.
First fragment has one button that calls activity to make a transaction to the second fragment.
Second fragment has only one WebView with a random link.
Steps to reproduce the bug:
1) In Activity's onCreate() method I call AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
2) Press the button on the first fragment to replace it with the second one.
3) Press the android back button on the second fragment
4) First fragment opens in day theme (was expecting a dark theme)
I read these issues
But none of them helped me :(
Also I found a reddit comment with the similar problem