mirror of https://github.com/M66B/FairEmail.git
Fixed swipe refresh state
This commit is contained in:
parent
b4b2b3653f
commit
20fcf05065
|
@ -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);
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue