Skip to content

Commit

Permalink
Fixed swipe refresh color for accounts/folders
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jul 15, 2024
1 parent dd59808 commit c43dbbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/eu/faircode/email/FragmentAccounts.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c

// 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
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/eu/faircode/email/FragmentFolders.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c

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
Expand Down

0 comments on commit c43dbbd

Please sign in to comment.