diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-06-15 10:49:45 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-06-15 21:32:47 +0300 |
commit | fe8923853c8ce667febb1e4c0f19c12bd6fd74b5 (patch) | |
tree | f85ac356ee22a05a1af499e651b0c41ccddfecda /app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher | |
parent | 85e7e2843f400ae69b10eaefadf627b877deefb8 (diff) |
Display branded check icon
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java index f849f15c3..d53cb130e 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/accountswitcher/AccountSwitcherDialog.java @@ -3,6 +3,7 @@ package it.niedermann.nextcloud.deck.ui.accountswitcher; import android.app.Dialog; import android.content.Context; import android.content.Intent; +import android.graphics.drawable.LayerDrawable; import android.net.Uri; import android.os.Bundle; @@ -22,12 +23,14 @@ import it.niedermann.nextcloud.deck.databinding.DialogAccountSwitcherBinding; import it.niedermann.nextcloud.deck.model.Account; import it.niedermann.nextcloud.deck.persistence.sync.SyncManager; import it.niedermann.nextcloud.deck.ui.MainViewModel; +import it.niedermann.nextcloud.deck.ui.branding.BrandedDialogFragment; import it.niedermann.nextcloud.deck.ui.manageaccounts.ManageAccountsActivity; import it.niedermann.nextcloud.deck.util.ExceptionUtil; import static it.niedermann.nextcloud.deck.ui.MainActivity.ACTIVITY_MANAGE_ACCOUNTS; +import static it.niedermann.nextcloud.deck.ui.branding.BrandedActivity.applyBrandToLayerDrawable; -public class AccountSwitcherDialog extends DialogFragment { +public class AccountSwitcherDialog extends BrandedDialogFragment { private static final String KEY_CURRENT_ACCOUNT_ID = "current_account_id"; @@ -115,4 +118,8 @@ public class AccountSwitcherDialog extends DialogFragment { return dialog; } + @Override + public void applyBrand(int mainColor, int textColor) { + applyBrandToLayerDrawable((LayerDrawable) binding.check.getDrawable(), R.id.area, mainColor); + } } |