From 434824a9fc6a5f911c1fa3dec3c135a7bbf86c49 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 4 Mar 2019 21:19:17 +0000 Subject: [PATCH] Save refreshing state --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 757c2e13a7..6d779e5faf 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -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);