Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-06-27 19:25:22 +0300
committerNiedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com>2020-06-30 13:58:19 +0300
commit94d740dd3d2f0d4e39b135a11c3e1e0704de2e53 (patch)
tree554446f9b292685757a949ef19214b07dfed7189 /app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java
parentc883f46bb9506a3faffb6e714e2dd37496ed839a (diff)
#525 Adjust design to new style of Nextcloud app
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java
index f531abbe1..299ec7499 100644
--- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java
@@ -83,15 +83,14 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Brande
@Nullable Context context = getContext();
if (context != null) {
@ColorInt final int mainColor = Application.readBrandMainColor(context);
- @ColorInt final int textColor = Application.readBrandTextColor(context);
- applyBrand(mainColor, textColor);
+ applyBrand(mainColor);
}
}
@Override
- public void applyBrand(int mainColor, int textColor) {
- wifiOnlyPref.applyBrand(mainColor, textColor);
- themePref.applyBrand(mainColor, textColor);
- brandingPref.applyBrand(mainColor, textColor);
+ public void applyBrand(int mainColor) {
+ wifiOnlyPref.applyBrand(mainColor);
+ themePref.applyBrand(mainColor);
+ brandingPref.applyBrand(mainColor);
}
}