siralam / BSImagePicker

An image picker that extends BottomSheetDialogFragment. Camera and gallery all in one dialog. Single or Multi Selection.
201 stars 62 forks source link

Image taken with the camera doesn't get selected. #19

Closed koostamas closed 5 years ago

koostamas commented 6 years ago

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");
            }
        });
siralam commented 5 years ago

Probably you are using the master branch instead of the released one. There is a bug in #17 and will be solved in 1.1.0

siralam commented 5 years ago

Fixed in 1.1.0