update SwipeRefreshView

androidx
Ztiany 5 years ago
parent 2ab637234c
commit 10fd69e7e6
  1. 2
      lib_base/src/main/java/com/android/base/app/ui/SwipeRefreshView.java

@ -17,8 +17,10 @@ class SwipeRefreshView implements RefreshView {
*/ */
@Override @Override
public void autoRefresh() { public void autoRefresh() {
mSwipeRefreshLayout.post(() -> {
mSwipeRefreshLayout.setRefreshing(true); mSwipeRefreshLayout.setRefreshing(true);
doRefresh(); doRefresh();
});
} }
@Override @Override

Loading…
Cancel
Save