mirror of https://github.com/M66B/FairEmail.git
Save refreshing state
This commit is contained in:
parent
e7f40d1b2f
commit
434824a9fc
|
@ -1438,6 +1438,8 @@ public class FragmentMessages extends FragmentBase {
|
|||
for (String name : values.keySet())
|
||||
outState.putLongArray("fair:name:" + name, Helper.toLongArray(values.get(name)));
|
||||
|
||||
outState.putBoolean("fair:refreshing", swipeRefresh.isRefreshing());
|
||||
|
||||
if (rvMessage != null) {
|
||||
Parcelable rv = rvMessage.getLayoutManager().onSaveInstanceState();
|
||||
outState.putParcelable("fair:rv", rv);
|
||||
|
@ -1462,6 +1464,8 @@ public class FragmentMessages extends FragmentBase {
|
|||
values.get(name).add(value);
|
||||
}
|
||||
|
||||
swipeRefresh.setRefreshing(savedInstanceState.getBoolean("fair:refreshing"));
|
||||
|
||||
if (rvMessage != null) {
|
||||
Parcelable rv = savedInstanceState.getBundle("fair:rv");
|
||||
rvMessage.getLayoutManager().onRestoreInstanceState(rv);
|
||||
|
|
Loading…
Reference in New Issue