Fix an issue with sharing file attachments into the app.

This commit is contained in:
Greyson Parrelli
2022-10-25 12:31:08 -04:00
committed by Alex Hart
parent 738676ea5f
commit 9de6c44b16
2 changed files with 4 additions and 4 deletions

View File

@@ -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() {