Fixed swipe refresh state

This commit is contained in:
M66B 2020-05-20 17:19:47 +02:00
parent b4b2b3653f
commit 20fcf05065
2 changed files with 7 additions and 0 deletions

View File

@ -1334,6 +1334,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
private void onSwipeRefresh() {
swipeRefresh.onRefresh();
Bundle args = new Bundle();
args.putLong("folder", folder);
args.putString("type", type);

View File

@ -59,6 +59,11 @@ public class SwipeRefreshLayoutEx extends SwipeRefreshLayout {
return this.refreshing;
}
public void onRefresh() {
this.refreshing = true;
setRefreshing(false);
}
public void resetRefreshing() {
// Restart spinner after screen off, etc
if (super.isRefreshing()) {