From c43dbbd2940958506ba1c4fa08691c3ff65e9c92 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 15 Jul 2024 17:11:14 +0200 Subject: [PATCH] Fixed swipe refresh color for accounts/folders --- app/src/main/java/eu/faircode/email/FragmentAccounts.java | 3 ++- app/src/main/java/eu/faircode/email/FragmentFolders.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccounts.java b/app/src/main/java/eu/faircode/email/FragmentAccounts.java index 44d82d1d31..d0e0654973 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccounts.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccounts.java @@ -124,8 +124,9 @@ public class FragmentAccounts extends FragmentBase { // Wire controls + int c = Helper.resolveColor(getContext(), R.attr.colorInfoForeground); + swipeRefresh.setColorSchemeColors(c, c, c); int colorPrimary = Helper.resolveColor(getContext(), androidx.appcompat.R.attr.colorPrimary); - swipeRefresh.setColorSchemeColors(Color.WHITE, Color.WHITE, Color.WHITE); swipeRefresh.setProgressBackgroundColorSchemeColor(colorPrimary); swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override diff --git a/app/src/main/java/eu/faircode/email/FragmentFolders.java b/app/src/main/java/eu/faircode/email/FragmentFolders.java index cfe17292c5..08ed4a3ff4 100644 --- a/app/src/main/java/eu/faircode/email/FragmentFolders.java +++ b/app/src/main/java/eu/faircode/email/FragmentFolders.java @@ -190,8 +190,9 @@ public class FragmentFolders extends FragmentBase { final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); + int c = Helper.resolveColor(getContext(), R.attr.colorInfoForeground); + swipeRefresh.setColorSchemeColors(c, c, c); int colorPrimary = Helper.resolveColor(getContext(), androidx.appcompat.R.attr.colorPrimary); - swipeRefresh.setColorSchemeColors(Color.WHITE, Color.WHITE, Color.WHITE); swipeRefresh.setProgressBackgroundColorSchemeColor(colorPrimary); swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override