upgrade SwipeRefreshLayout to 1.1.0 (#1866)

This commit is contained in:
Konrad Pozniak 2020-07-28 10:38:28 +02:00 committed by GitHub
commit 467c33aacb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 3 additions and 17 deletions

View file

@ -421,11 +421,8 @@ public class TimelineFragment extends SFragment implements
private void setupSwipeRefreshLayout() {
swipeRefreshLayout.setEnabled(isSwipeToRefreshEnabled);
if (isSwipeToRefreshEnabled) {
Context context = swipeRefreshLayout.getContext();
swipeRefreshLayout.setOnRefreshListener(this);
swipeRefreshLayout.setColorSchemeResources(R.color.tusky_blue);
swipeRefreshLayout.setProgressBackgroundColorSchemeColor(ThemeUtils.getColor(context,
android.R.attr.colorBackground));
}
}