Simplified custom tabs color scheme

This commit is contained in:
M66B
2026-01-01 19:13:55 +01:00
parent 4928ad0121
commit b17f0d415f

View File

@@ -1290,12 +1290,9 @@ public class Helper {
}
} else {
int colorPrimary = resolveColor(context, androidx.appcompat.R.attr.colorPrimary);
int colorPrimaryDark = resolveColor(context, androidx.appcompat.R.attr.colorPrimaryDark);
CustomTabColorSchemeParams.Builder schemes = new CustomTabColorSchemeParams.Builder()
.setToolbarColor(colorPrimary)
.setSecondaryToolbarColor(colorPrimaryDark)
.setNavigationBarColor(colorPrimaryDark);
.setToolbarColor(colorPrimary);
// https://developer.chrome.com/multidevice/android/customtabs
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder()