siralam / BSImagePicker

An image picker that extends BottomSheetDialogFragment. Camera and gallery all in one dialog. Single or Multi Selection.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handling an exception when user does not have any images in the device

wrbl606 opened this issue · comments

For now, in case mentioned in the title, screens goes dark (fragment dialog launches) but it has nothing to show. How about displaying some kind of message in the picker in that case? Or displaing a Toast?

I know this issue occurs very rarely but still it is worth investigating.

commented

@wrbl606 May I confirm if this happens only when in multi-selection mode (So that no camera tile or gallery tile is shown)?

Anyway this is a good suggestion, I will consider adding it in the future. Thanks!

It can occur in multiselection mode and in singleselection when both options

.hideCameraTile()
.hideGalleryTile()

are used in it's builder.

commented

@wrbl606 Ah, right. Thank you!

commented

Implemented in 1.1.0