Skip to content

Camera does not start on Pixel 4 with 1.8 but with 1.7.5 #162

Closed
@WarrenFaith

Description

I used the lib successfully and wanted to update from 1.7.5 to 1.8.

On my Pixel 4 Android 11, the camery/galery dialog is still working but when I press camera, the dialog disappears and nothing happens.
Device was restarted to prevent issues with the camera. Downgrade to 1.7.5 made it work again. No error message, no log output that I could identify to be related.

The calling code I used didn't change and is rather simple:

ImagePicker.with(this) // this being a fragment
    .compress(INCIDENT_IMAGE_MAX_SIZE_KB)
    .maxResultSize(INCIDENT_IMAGE_WIDTH, INCIDENT_IMAGE_HEIGHT)
    .galleryMimeTypes(arrayOf("image/png", "image/jpeg", "image/jpg"))
    .start { resultCode, data ->
        viewModel.handleImagePicker(resultCode, data)
    }

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions