Commit c0f54080 authored by Ignacio García's avatar Ignacio García

P4A-1056 Destroy loaders in onStop instead of onPause.

Our MessageListAdapter works with cursors, and we were destroying the loaders for this cursor while screen is still visible (it is only paused). Instead we destroy loaders when screen is not seen anymore.
parent bbd7a6af
......@@ -781,7 +781,6 @@ public class MessageListFragment extends PEpFragment implements ConfirmationDial
localBroadcastManager.unregisterReceiver(cacheBroadcastReceiver);
activityListener.onPause(getActivity());
messagingController.removeListener(activityListener);
destroyLoaders();
}
/**
......@@ -2565,6 +2564,7 @@ public class MessageListFragment extends PEpFragment implements ConfirmationDial
Timber.e(e, "Could not abort remote search before going back");
}
}
destroyLoaders();
super.onStop();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment