onaty commented on issue #747:
URL: https://github.com/apache/cordova-android/issues/747#issuecomment-641168140
> You can check if the device has dark mode enabled and only force the
WebView into dark mode in that case, something like
>
> ```
> int nightModeFlags = getResources().getConfiguration().uiMode &
Configuration.UI_MODE_NIGHT_MASK;
> if (nightModeFlags == Configuration.UI_MODE_NIGHT_YES) {
> if (android.os.Build.VERSION.SDK_INT >=
android.os.Build.VERSION_CODES.Q) {
> webSettings.setForceDark(WebSettings.FORCE_DARK_ON);
> }
> }
> ```
>
> But doesn't seem to be possible to get light media query.
>
> Looks like an Android bug to me.
Please, which file will I edit this
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]