mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-10 04:38:33 +00:00
Use proper lifecycle for SimpleTask which touches fragment view.
This commit is contained in:
parent
13a67980d9
commit
f680749a00
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user