diff --git a/lib_base/src/main/java/com/android/base/app/ui/SwipeRefreshView.java b/lib_base/src/main/java/com/android/base/app/ui/SwipeRefreshView.java index 511448f..9e2ced8 100644 --- a/lib_base/src/main/java/com/android/base/app/ui/SwipeRefreshView.java +++ b/lib_base/src/main/java/com/android/base/app/ui/SwipeRefreshView.java @@ -17,8 +17,10 @@ class SwipeRefreshView implements RefreshView { */ @Override public void autoRefresh() { - mSwipeRefreshLayout.setRefreshing(true); - doRefresh(); + mSwipeRefreshLayout.post(() -> { + mSwipeRefreshLayout.setRefreshing(true); + doRefresh(); + }); } @Override