瀏覽代碼

Revert drawer activity header

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 年之前
父節點
當前提交
d54c86e625
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      app/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java

+ 2 - 3
app/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java

@@ -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);