mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-07 05:15:43 +01:00
Safely reference parent fragment from adapters
This commit is contained in:
@@ -529,7 +529,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
rvAttachment.setLayoutManager(llm);
|
||||
rvAttachment.setItemAnimator(null);
|
||||
|
||||
adapter = new AdapterAttachment(getContext(), getViewLifecycleOwner(), false);
|
||||
adapter = new AdapterAttachment(this, false);
|
||||
rvAttachment.setAdapter(adapter);
|
||||
|
||||
tvNoInternetAttachments.setVisibility(View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user