Revert drawer activity header

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-04-22 16:17:18 +02:00
parent 0cbe918eae
commit 0247ab60c7
No known key found for this signature in database
GPG Key ID: 4E577DC593B59BDF
1 changed files with 2 additions and 3 deletions

View File

@ -287,10 +287,9 @@ 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 && (!isClientBranded || !isClientBrandedPlus)) {
getCapabilities().getServerBackground() != null && !isClientBranded) {
OCCapability capability = getCapabilities();
String logo = capability.getServerLogo();
@ -341,7 +340,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 = isClientBrandedPlus || isClientBranded || !preferences.isShowEcosystemApps();
boolean shouldHideTopBanner = isClientBranded || !preferences.isShowEcosystemApps();
if (shouldHideTopBanner) {
hideTopBanner(banner);