mirror of https://github.com/M66B/FairEmail.git
Custom tabs improvements
This commit is contained in:
parent
92f3003a7b
commit
229d3b4245
|
@ -271,8 +271,11 @@ public class Helper {
|
|||
} else {
|
||||
// https://developer.chrome.com/multidevice/android/customtabs
|
||||
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
|
||||
builder.setNavigationBarColor(resolveColor(context, R.attr.colorPrimaryDark));
|
||||
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 customTabsIntent = builder.build();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue