Custom tabs improvements

This commit is contained in:
M66B 2020-06-12 21:40:32 +02:00
parent 288b749c8e
commit 7280207f9a
1 changed files with 4 additions and 2 deletions

View File

@ -472,8 +472,10 @@ public class Helper {
builder.setToolbarColor(resolveColor(context, R.attr.colorPrimary));
builder.setSecondaryToolbarColor(resolveColor(context, R.attr.colorPrimaryDark));
builder.setColorScheme(Helper.isDarkTheme(context)
? CustomTabsIntent.COLOR_SCHEME_DARK : CustomTabsIntent.COLOR_SCHEME_LIGHT);
builder.addDefaultShareMenuItem();
? CustomTabsIntent.COLOR_SCHEME_DARK
: CustomTabsIntent.COLOR_SCHEME_LIGHT);
builder.setDefaultShareMenuItemEnabled(true);
builder.setUrlBarHidingEnabled(true);
CustomTabsIntent customTabsIntent = builder.build();
try {