mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Safely reference parent fragment from adapters
This commit is contained in:
@@ -75,7 +75,7 @@ public class FragmentContacts extends FragmentBase {
|
||||
LinearLayoutManager llm = new LinearLayoutManager(getContext());
|
||||
rvContacts.setLayoutManager(llm);
|
||||
|
||||
adapter = new AdapterContact(getContext(), getViewLifecycleOwner());
|
||||
adapter = new AdapterContact(this);
|
||||
rvContacts.setAdapter(adapter);
|
||||
|
||||
// Initialize
|
||||
|
||||
Reference in New Issue
Block a user