fix(common): use system theme in Custom Tabs

This commit is contained in:
Harsh Shandilya 2023-02-14 21:31:07 +05:30 committed by GitHub
parent 9f7a3aca14
commit d402d55718
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ class UrlLauncher(private val context: Context) : UriHandler {
CustomTabsIntent.Builder()
.setShareState(CustomTabsIntent.SHARE_STATE_ON)
.setShowTitle(true)
.setColorScheme(CustomTabsIntent.COLOR_SCHEME_DARK)
.setColorScheme(CustomTabsIntent.COLOR_SCHEME_SYSTEM)
.build()
try {
customTabsIntent.launchUrl(context, Uri.parse(uri))