mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Fixed swipe refresh color for accounts/folders
This commit is contained in:
parent
dd59808d30
commit
c43dbbd294
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue