Simplified custom tabs color scheme

master
M66B 8 months ago
parent 4928ad0121
commit b17f0d415f

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

Loading…
Cancel
Save