mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Safely reference parent fragment from adapters
This commit is contained in:
@@ -74,7 +74,7 @@ public class FragmentOperations extends FragmentBase {
|
||||
LinearLayoutManager llm = new LinearLayoutManager(getContext());
|
||||
rvOperation.setLayoutManager(llm);
|
||||
|
||||
adapter = new AdapterOperation(getContext(), getViewLifecycleOwner());
|
||||
adapter = new AdapterOperation(this);
|
||||
rvOperation.setAdapter(adapter);
|
||||
|
||||
// Initialize
|
||||
|
||||
Reference in New Issue
Block a user