|
@@ -286,9 +286,11 @@ public abstract class DrawerActivity extends ToolbarActivity
|
|
|
|
|
|
public void updateHeader() {
|
|
|
int primaryColor = themeColorUtils.unchangedPrimaryColor(getAccount(), this);
|
|
|
+ boolean isClientBranded = getResources().getBoolean(R.bool.is_branded_client);
|
|
|
+ boolean isClientBrandedPlus = getResources().getBoolean(R.bool.is_branded_plus_client);
|
|
|
|
|
|
if (getAccount() != null &&
|
|
|
- getCapabilities().getServerBackground() != null && !MainApp.isClientBrandedOrBrandedPlus()) {
|
|
|
+ getCapabilities().getServerBackground() != null && (!isClientBranded || !isClientBrandedPlus)) {
|
|
|
|
|
|
OCCapability capability = getCapabilities();
|
|
|
String logo = capability.getServerLogo();
|
|
@@ -339,7 +341,7 @@ public abstract class DrawerActivity extends ToolbarActivity
|
|
|
|
|
|
// hide ecosystem apps according to user preference or in branded client
|
|
|
LinearLayout banner = mNavigationViewHeader.findViewById(R.id.drawer_ecosystem_apps);
|
|
|
- boolean shouldHideTopBanner = MainApp.isClientBrandedOrBrandedPlus() || !preferences.isShowEcosystemApps();
|
|
|
+ boolean shouldHideTopBanner = isClientBrandedPlus || isClientBranded || !preferences.isShowEcosystemApps();
|
|
|
|
|
|
if (shouldHideTopBanner) {
|
|
|
hideTopBanner(banner);
|
|
@@ -470,7 +472,7 @@ public abstract class DrawerActivity extends ToolbarActivity
|
|
|
DrawerMenuUtil.filterTrashbinMenuItem(menu, capability);
|
|
|
DrawerMenuUtil.filterActivityMenuItem(menu, capability);
|
|
|
DrawerMenuUtil.filterGroupfoldersMenuItem(menu, capability);
|
|
|
- DrawerMenuUtil.filterAssistantMenuItem(menu, capability, getResources());
|
|
|
+ DrawerMenuUtil.filterAssistantMenuItem(menu, capability);
|
|
|
DrawerMenuUtil.setupHomeMenuItem(menu, getResources());
|
|
|
DrawerMenuUtil.removeMenuItem(menu, R.id.nav_community, !getResources().getBoolean(R.bool.participate_enabled));
|
|
|
DrawerMenuUtil.removeMenuItem(menu, R.id.nav_shared, !getResources().getBoolean(R.bool.shared_enabled));
|