esafirm / android-image-picker

Image Picker for Android 🤖
MIT License
1.1k stars 328 forks source link

Fragment gets destroyed after the image picker returns #318

Open florianlindner opened 3 years ago

florianlindner commented 3 years ago

Expected Behavior

When launching the image Picker from a fragment the fragment should remain on the fragment after finishing the picker.

Actual Behavior

The invoking fragment gets destroyed after picking an image or just closing the picker.

Steps to Reproduce the Problem

  1. In a fragment open the picker: ImagePicker.create(this).returnMode(ReturnMode.GALLERY_ONLY).folderMode(true).toolbarFolderTitle(getString(R.string.event_pick_folder)).toolbarImageTitle(getString(R.string.event_pick_image)).includeVideo(false).single().limit(1).showCamera(false).enableLog(false).start()
  2. In the picker press the back button
  3. The invoking fragment gets destroyed

Specifications

MuhammadZahooruzzama commented 2 years ago

I am also facing the same issue , did you find any solution?

rahul-smax commented 3 months ago

I'm also facing similar issue. Anyone found a solution to it?