Stop refresh animation on pause
Workaround for Android bug https://issuetracker.google.com/issues/37008170
This commit is contained in:
parent
d4eb23894d
commit
7c89108cea
1 changed files with 7 additions and 0 deletions
|
@ -664,6 +664,13 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
|
|||
localBroadcastManager.unregisterReceiver(cacheBroadcastReceiver);
|
||||
activityListener.onPause(getActivity());
|
||||
messagingController.removeListener(activityListener);
|
||||
|
||||
// Workaround for Android bug https://issuetracker.google.com/issues/37008170
|
||||
if (swipeRefreshLayout != null) {
|
||||
swipeRefreshLayout.setRefreshing(false);
|
||||
swipeRefreshLayout.destroyDrawingCache();
|
||||
swipeRefreshLayout.clearAnimation();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue