Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c89108c authored by Trogel's avatar Trogel
Browse files

Stop refresh animation on pause

parent d4eb2389
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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();
        }
    }

    /**