Skip to content

Commit 1c6ac63

Browse files
committed
fix circle spinner color style
1 parent 79bcb2d commit 1c6ac63

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/ptr/PullToRefreshHelper.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ public void init(Activity activity, SwipeRefreshLayout swipeRefreshLayout, Refre
4747
mRefreshListener = listener;
4848
mSwipeRefreshLayout = swipeRefreshLayout;
4949
mSwipeRefreshLayout.setOnRefreshListener(this);
50-
final TypedArray styleAttrs = obtainStyledAttrsFromThemeAttr(activity, R.attr.refreshIndicatorColor,
50+
final TypedArray styleAttrs = obtainStyledAttrsFromThemeAttr(activity, R.attr.swipeToRefreshStyle,
5151
R.styleable.RefreshIndicator);
5252
int color = styleAttrs.getColor(R.styleable.RefreshIndicator_refreshIndicatorColor,
5353
android.R.color.holo_blue_dark);
54-
mSwipeRefreshLayout.setProgressBackgroundColor(color);
55-
mSwipeRefreshLayout.setColorSchemeResources(android.R.color.white, android.R.color.white, android.R.color.white,
56-
android.R.color.white);
54+
mSwipeRefreshLayout.setColorSchemeColors(color, color, color, color);
5755
}
5856

5957
public void setRefreshing(boolean refreshing) {

0 commit comments

Comments
 (0)