Stop refresh animation on pause

Workaround for Android bug https://issuetracker.google.com/issues/37008170
This commit is contained in:
Trogel 2017-10-09 12:39:22 +02:00
parent d4eb23894d
commit 7c89108cea

View file

@ -664,6 +664,13 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
localBroadcastManager.unregisterReceiver(cacheBroadcastReceiver); localBroadcastManager.unregisterReceiver(cacheBroadcastReceiver);
activityListener.onPause(getActivity()); activityListener.onPause(getActivity());
messagingController.removeListener(activityListener); messagingController.removeListener(activityListener);
// Workaround for Android bug https://issuetracker.google.com/issues/37008170
if (swipeRefreshLayout != null) {
swipeRefreshLayout.setRefreshing(false);
swipeRefreshLayout.destroyDrawingCache();
swipeRefreshLayout.clearAnimation();
}
} }
/** /**