mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 07:27:26 +00:00
Use proper lifecycle for SimpleTask which touches fragment view.
This commit is contained in:
@@ -260,7 +260,7 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
InsightsLauncher.showInsightsModal(requireContext(), requireFragmentManager());
|
||||
}
|
||||
|
||||
SimpleTask.run(getLifecycle(), Recipient::self, this::initializeProfileIcon);
|
||||
SimpleTask.run(getViewLifecycleOwner().getLifecycle(), Recipient::self, this::initializeProfileIcon);
|
||||
|
||||
if (!searchToolbar.isVisible() && list.getAdapter() != defaultAdapter) {
|
||||
list.removeItemDecoration(searchAdapterDecoration);
|
||||
|
Reference in New Issue
Block a user