Skip to content

Releases: esafirm/android-image-picker

New ReturnMode API and many more!

17 Jan 12:17
Compare
Choose a tag to compare

BREAKING CHANGES!!!

  • [New] Return Mode API returnMode
Define the ImagePicker return behaviour
1. ReturnMode.NONE -> When image is picked, ImagePickerActivity will not dismissed even in Single Mode
2. ReturnMode.ALL -> When image is picked dismiss then deliver result
3. ReturnMode.CAMERA_ONLY -> When image is picked with Camera, dismiss then deliver the result
4. ReturnMode.GALLERY_ONLY -> Same as CAMERA_ONLY but with Gallery

So if you want to mimic the setReturnAfterFirst behavior, all you have to do is

ImagePicker.create(activity).setReturnMode(ReturnMode.ALL).start()
  • setReturnAfterFirst is now obsolete
  • [New] set toolbar arrow color with toolbarArrowColor(int color)
  • Rename ImagePicker methods
    • folderTitle -> toolbarFolderTitle
    • imageTitle -> toolbarImageTitle
  • Add capability to start without a request code

So instead of this

ImagePicker.cameraOnly().start(RC_CAMERA /* int */);

Now you can do this

ImagePicker.cameraOnly().start()

BUT, you have to handle the result with the helper method from ImagePicker

 @Override
   protected void onActivityResult(int requestCode, final int resultCode, Intent data) {
       if (ImagePicker.shouldHandle(requestCode, resultCode, data)) {
           // do your things
       }
       super.onActivityResult(requestCode, resultCode, data);
   }

You can still use the usual result check if you define the request code by yourself.

  • Add convenience method ImagePicker.getFirstImageOrNull(Intent data) to fetch only first image from the result or return null

Add Exclude Function

11 Jan 15:05
Compare
Choose a tag to compare

Now you can exclude image from being shown in the picker

ImagePicker.create(this)
    .exclude(image)           // exclude everything in `List<Image>`
    .excludeFiles(files)      // or you can exclude everything in `List<File>` 
    .start(RQ)

Fixes

11 Jan 09:22
Compare
Choose a tag to compare
  • Glide and AppCompat now marked as implementation
  • Glide fixes
  • Internal fixes

Add new way to do camera only

05 Jan 15:17
Compare
Choose a tag to compare
  • Add new way to do camera only

    ImagePicker.cameraOnly().start(activity)
  • Remove ImmediateCameraModule

  • Bugfixes 🐛

Add translation, Fix bug

15 Dec 13:47
Compare
Choose a tag to compare

1.8.0

02 Sep 05:35
Compare
Choose a tag to compare

Enhancement

  • #70 - Now if nothing is selected and you define your image title explicitly, the toolbar will show the defined title.

  • #69 - Add French translation. Thanks @Jerome67000

Breaking Changes

ImagePickerConfigFactory.create() and ImagePicker.init() don't take Context anymore

1.7.5

30 Jul 04:44
Compare
Choose a tag to compare

Bug Fix

  • #65
  • Cannot unselect image that passed from the builder

New Feature

  • Set the full path for saving camera Image
public ImagePicker imageFullDirectory(String fullPath) {
        config.setImageFullDirectory(fullPath);
        return this;
    }

Internal

  • Excluding unnecessary Android Support modules

More fixes and improvement

09 Jul 03:11
Compare
Choose a tag to compare
  • Fix returnAfterFirst not working in gallery selection
  • Add config checker

Bug fixes

05 Jul 02:41
Compare
Choose a tag to compare

Changelog:

  1. Fix back button issue when setFolderMode set to true
  2. Expose ImagePickerConfig in ImagePicker. Now you can override getConfig() before called by getIntent()

Internal changes & bug fixes

27 May 08:21
Compare
Choose a tag to compare
  • Fix SnackBar issue when permission is not granted
  • Add toggle log feature.
ImagePicker.enableLog(false)

Also highlighting the previous changes in 1.6.0

  • Adding custom ImageLoader
  • Removing traditional intent stater