Merge pull request #2827 from Trogel/stop-refresh-animation-on-pause
Stop refresh animation on pause
This commit is contained in:
commit
d9789e91af
1 changed files with 8 additions and 0 deletions
|
@ -2260,6 +2260,14 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
|
|||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue