Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView Not Responding to System Dark Mode #16

Open
ankarastrix opened this issue Jul 21, 2024 · 2 comments
Open

WebView Not Responding to System Dark Mode #16

ankarastrix opened this issue Jul 21, 2024 · 2 comments

Comments

@ankarastrix
Copy link

I am experiencing an issue where the WebView in my Android application does not respond to the system's dark mode settings. Despite the system dark mode being enabled, the WebView content remains unchanged and does not adapt to the dark theme.

@NoyaD9
Copy link

NoyaD9 commented Oct 9, 2024

Correct me if wrong but this should be handled by the page you are loading and not by the WebView.

@Tiarait
Copy link

Tiarait commented Oct 17, 2024

@ankarastrix

For api29
u can create night theme and inside add

<item name="android:forceDarkAllowed" tools:ignore="NewApi">true</item>
<item name="android:isLightTheme" tools:ignore="NewApi">false</item>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants