mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Fix an issue with sharing file attachments into the app.
This commit is contained in:
committed by
Alex Hart
parent
738676ea5f
commit
9de6c44b16
@@ -2052,7 +2052,7 @@ public class ConversationParentFragment extends Fragment
|
||||
inputPanel.setListener(this);
|
||||
inputPanel.setMediaListener(this);
|
||||
|
||||
attachmentManager = new AttachmentManager(requireActivity(), this);
|
||||
attachmentManager = new AttachmentManager(requireContext(), view, this);
|
||||
audioRecorder = new AudioRecorder(requireContext());
|
||||
typingTextWatcher = new ComposeTextWatcher();
|
||||
|
||||
|
||||
@@ -101,10 +101,10 @@ public class AttachmentManager {
|
||||
private @NonNull Optional<Slide> slide = Optional.empty();
|
||||
private @Nullable Uri captureUri;
|
||||
|
||||
public AttachmentManager(@NonNull Activity activity, @NonNull AttachmentListener listener) {
|
||||
this.context = activity;
|
||||
public AttachmentManager(@NonNull Context context, @NonNull View rootView, @NonNull AttachmentListener listener) {
|
||||
this.context = context;
|
||||
this.attachmentListener = listener;
|
||||
this.attachmentViewStub = ViewUtil.findStubById(activity, R.id.attachment_editor_stub);
|
||||
this.attachmentViewStub = ViewUtil.findStubById(rootView, R.id.attachment_editor_stub);
|
||||
}
|
||||
|
||||
private void inflateStub() {
|
||||
|
||||
Reference in New Issue
Block a user