jdamcd/android-crop — pull request #26 by aldoreyes (2014-07-06 06:38:46+00:00)
Title: Crop to honor maxSize intent parameters

Hi, noticed that when I set a maxSize through `withMaxSize` method, on newer android API versions than 10 the crop function returns a cropped image but it's not returning a resized image to match the max size parameters.

Also I've set the getIntent method available at runtime, useful when using the android-support-library and to avoid forwarding the `onActivityResult` result into the current fragment, i.e. you can run the following from inside a `android.support.v4.app.Fragment` instance, and receive the result inside the same instance method `onActivityResult`, otherwise the result is returned to the parent activity not the fragment:

startActivityForResult(new Crop(inUri)
.output(outUri)
.asSquare()
.withMaxSize(96, 96)
.getIntent(this.getActivity()) //public method
, Crop.REQUEST_CROP);

Probably not the best solution for both problems, just wanted to dive into the code and make some temporary solutions, while the library is updated.

Pretty cool work btw, thank you.