Skip to content

Commit 8123ff6

Browse files
authored
Support dark mode in Zendesk chat (#21486)
* Updated to latest Zendesk * Use setAlgorithmicDarkeningAllowed * Reverted Zendesk library update
1 parent 817841f commit 8123ff6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WordPress/src/main/java/org/wordpress/android/support/SupportWebViewActivity.kt

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import android.content.Context
44
import android.content.Intent
55
import android.content.pm.ApplicationInfo
66
import android.net.Uri
7+
import android.os.Build
78
import android.os.Bundle
89
import android.util.Log
910
import android.view.Menu
@@ -145,6 +146,11 @@ class SupportWebViewActivity : WPWebViewActivity(), SupportWebViewClient.Support
145146
.addPathHandler("/assets/", AssetsPathHandler(this))
146147
.addPathHandler("/res/", ResourcesPathHandler(this))
147148
.build()
149+
150+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
151+
mWebView.settings.setAlgorithmicDarkeningAllowed(true)
152+
}
153+
148154
mWebView.webViewClient = SupportWebViewClient(this, assetLoader)
149155

150156
// Setup debugging; See https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews

0 commit comments

Comments
 (0)