diff options
Diffstat (limited to 'app/src/main/java/it/niedermann/owncloud/notes/branding/BrandedSwitchPreference.java')
-rw-r--r-- | app/src/main/java/it/niedermann/owncloud/notes/branding/BrandedSwitchPreference.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/branding/BrandedSwitchPreference.java b/app/src/main/java/it/niedermann/owncloud/notes/branding/BrandedSwitchPreference.java index a3dd233c..de1f53d1 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/branding/BrandedSwitchPreference.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/branding/BrandedSwitchPreference.java @@ -61,13 +61,8 @@ public class BrandedSwitchPreference extends SwitchPreference implements Branded @Override public void applyBrand(@ColorInt int mainColor, @ColorInt int textColor) { - if (BrandingUtil.isBrandingEnabled(getContext())) { - this.mainColor = mainColor; - this.textColor = textColor; - } else { - this.mainColor = getContext().getResources().getColor(R.color.defaultBrand); - this.textColor = Color.WHITE; - } + this.mainColor = mainColor; + this.textColor = textColor; // onBindViewHolder is called after applyBrand, therefore we have to store the given values and apply them later. applyBrand(); } |