Open
Description
I've upgraded my project to use AndroidX and RxImagePicker 2.2.1, which broke my code:
@Override
public void onPhotoReadyAction(final Sources pickerSource, final int imageTargetId) {
Log.d(TAG, String.format("onPhotoReadyAction() --> requestImage() for sources: %s and imageTargetId: %d", pickerSource, imageTargetId));
photoConverterDisposable = RxImagePicker.Companion.with(activity.getSupportFragmentManager()).requestImage(pickerSource)
.flatMap((Function<Uri, ObservableSource<Base64Wrapper>>) uri -> ImageConverter.uriToBase64(activity, uri))
.subscribe(base64Wrapper -> {
Log.i(TAG, "onPhotoReadyAction() --> requestImage() DONE --> setPhoto() for base64Wrapper: " + base64Wrapper);
setPhoto(imageTargetId, base64Wrapper);
});
activeRequests.add(photoConverterDisposable);
}
My code breaks on the line RxImagePicker.with(activity.getSupportFragmentManager()).requestImage(pickerSource)
with the error: "Cannot resolve method 'with(androidx.fragment.app.FragmentManager)"
Please help
Metadata
Metadata
Assignees
Labels
No labels