The image picker works great if I choose an image from the list of the newest images. But if I click on the camera and take a picture or click on the gallery and choose an image from there then it just takes me back to the list and the image doesn't get selected.
I tested it on an OnePlus 5T (Android 8.1, Oxygen OS) and an Xperia Z3 (Android 8.0, Lineage OS).
My code that opens the dialog:
final BSImagePicker singleSelectionPicker = new BSImagePicker.Builder("com.*******.********.fileprovider")
.setMaximumDisplayingImages(25)
.build();
imageContainer.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
singleSelectionPicker.show(getSupportFragmentManager(), "picker");
}
});
The image picker works great if I choose an image from the list of the newest images. But if I click on the camera and take a picture or click on the gallery and choose an image from there then it just takes me back to the list and the image doesn't get selected. I tested it on an OnePlus 5T (Android 8.1, Oxygen OS) and an Xperia Z3 (Android 8.0, Lineage OS). My code that opens the dialog: