diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-04-10 20:49:12 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-04-10 20:49:12 +0300 |
commit | 5d40169a39883e96e5da8dc7bb59be2314754b68 (patch) | |
tree | 521a8f15ed21538258b2121f9cde22441983487f /app/src/main/java/it/niedermann/nextcloud/deck/ui/card/EditActivity.java | |
parent | 5274e6e645c7ec598f42d801e74a1adf858be0e4 (diff) |
#317 Adjust theme for each account
Refactoring for TabLayouts
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/card/EditActivity.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/card/EditActivity.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/EditActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/EditActivity.java index 48a817fb6..d7270a598 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/EditActivity.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/EditActivity.java @@ -1,6 +1,5 @@ package it.niedermann.nextcloud.deck.ui.card; -import android.content.res.ColorStateList; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; @@ -340,10 +339,8 @@ public class EditActivity extends AbstractThemableActivity implements CardDetail @Override public void applyNextcloudTheme(int mainColor, int textColor) { super.applyNextcloudTheme(mainColor, textColor); - applyNextcloudTheme(mainColor, textColor, binding.toolbar); + applyNextcloudThemeToToolbar(mainColor, textColor, binding.toolbar); + applyNextcloudThemeToTablayout(mainColor, textColor, binding.tabLayout); binding.title.setTextColor(textColor); - binding.tabLayout.setBackgroundColor(mainColor); - binding.tabLayout.setTabIconTint(new ColorStateList(new int[][]{new int[]{}}, new int[]{textColor})); - binding.tabLayout.setSelectedTabIndicatorColor(textColor); } } |