You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Thanks for the awesome library, However when setting camera disabled to true it only hides the capture new image button however on clicking the image at position 0 the camera is opened
To Reproduce
Steps to reproduce the behavior:
Set camera disabled to true
Click on the first image
Camera will open instead of marking the image as selected
Expected behavior
When camera is disabled images at position 0 should be marked as selected instead of opening the camera
Additional context
The override fun onItemClicked(position: Int) {
when (position) {
0 -> openCamera()
else -> {
mainViewModel.setImageSelection(position, mImagesAdapter?.images)
}
}
} inside ImagePickerActivity ImagePickerActivity should check on the disabledCamera attribute as well not only the position I would have loved to create a branch with the fix in order to support more but am still trying to get the hang of kotlin
The text was updated successfully, but these errors were encountered:
Describe the bug
Thanks for the awesome library, However when setting camera disabled to true it only hides the capture new image button however on clicking the image at position 0 the camera is opened
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When camera is disabled images at position 0 should be marked as selected instead of opening the camera
Additional context
The override fun onItemClicked(position: Int) {
when (position) {
0 -> openCamera()
else -> {
mainViewModel.setImageSelection(position, mImagesAdapter?.images)
}
}
} inside ImagePickerActivity ImagePickerActivity should check on the disabledCamera attribute as well not only the position I would have loved to create a branch with the fix in order to support more but am still trying to get the hang of kotlin
The text was updated successfully, but these errors were encountered: