kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix an issue with sharing file attachments into the app.
rodzic
738676ea5f
commit
9de6c44b16
|
@ -2052,7 +2052,7 @@ public class ConversationParentFragment extends Fragment
|
||||||
inputPanel.setListener(this);
|
inputPanel.setListener(this);
|
||||||
inputPanel.setMediaListener(this);
|
inputPanel.setMediaListener(this);
|
||||||
|
|
||||||
attachmentManager = new AttachmentManager(requireActivity(), this);
|
attachmentManager = new AttachmentManager(requireContext(), view, this);
|
||||||
audioRecorder = new AudioRecorder(requireContext());
|
audioRecorder = new AudioRecorder(requireContext());
|
||||||
typingTextWatcher = new ComposeTextWatcher();
|
typingTextWatcher = new ComposeTextWatcher();
|
||||||
|
|
||||||
|
|
|
@ -101,10 +101,10 @@ public class AttachmentManager {
|
||||||
private @NonNull Optional<Slide> slide = Optional.empty();
|
private @NonNull Optional<Slide> slide = Optional.empty();
|
||||||
private @Nullable Uri captureUri;
|
private @Nullable Uri captureUri;
|
||||||
|
|
||||||
public AttachmentManager(@NonNull Activity activity, @NonNull AttachmentListener listener) {
|
public AttachmentManager(@NonNull Context context, @NonNull View rootView, @NonNull AttachmentListener listener) {
|
||||||
this.context = activity;
|
this.context = context;
|
||||||
this.attachmentListener = listener;
|
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() {
|
private void inflateStub() {
|
||||||
|
|
Ładowanie…
Reference in New Issue