Skip to content

Commit

Permalink
Revert drawer activity header
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <alper_ozturk@proton.me>
  • Loading branch information
alperozturk96 committed Apr 22, 2024
1 parent 0cbe918 commit 0247ab6
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -287,10 +287,9 @@ private void setupQuotaElement() {
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();
Expand Down Expand Up @@ -341,7 +340,7 @@ public void onResourceReady(Bitmap resource, GlideAnimation glideAnimation) {

// 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);
Expand Down

0 comments on commit 0247ab6

Please sign in to comment.