mirror of https://github.com/M66B/FairEmail.git
Custom tabs improvements
This commit is contained in:
parent
288b749c8e
commit
7280207f9a
|
@ -472,8 +472,10 @@ public class Helper {
|
||||||
builder.setToolbarColor(resolveColor(context, R.attr.colorPrimary));
|
builder.setToolbarColor(resolveColor(context, R.attr.colorPrimary));
|
||||||
builder.setSecondaryToolbarColor(resolveColor(context, R.attr.colorPrimaryDark));
|
builder.setSecondaryToolbarColor(resolveColor(context, R.attr.colorPrimaryDark));
|
||||||
builder.setColorScheme(Helper.isDarkTheme(context)
|
builder.setColorScheme(Helper.isDarkTheme(context)
|
||||||
? CustomTabsIntent.COLOR_SCHEME_DARK : CustomTabsIntent.COLOR_SCHEME_LIGHT);
|
? CustomTabsIntent.COLOR_SCHEME_DARK
|
||||||
builder.addDefaultShareMenuItem();
|
: CustomTabsIntent.COLOR_SCHEME_LIGHT);
|
||||||
|
builder.setDefaultShareMenuItemEnabled(true);
|
||||||
|
builder.setUrlBarHidingEnabled(true);
|
||||||
|
|
||||||
CustomTabsIntent customTabsIntent = builder.build();
|
CustomTabsIntent customTabsIntent = builder.build();
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue