Merge pull request #2827 from Trogel/stop-refresh-animation-on-pause

Stop refresh animation on pause
This commit is contained in:
cketti 2017-10-14 16:46:49 +02:00 committed by GitHub
commit d9789e91af

View file

@ -2260,6 +2260,14 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
Timber.e(e, "Could not abort remote search before going back"); Timber.e(e, "Could not abort remote search before going back");
} }
} }
// Workaround for Android bug https://issuetracker.google.com/issues/37008170
if (swipeRefreshLayout != null) {
swipeRefreshLayout.setRefreshing(false);
swipeRefreshLayout.destroyDrawingCache();
swipeRefreshLayout.clearAnimation();
}
super.onStop(); super.onStop();
} }