diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 31af3b7bf5..afb7d4dd4e 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -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 {