freshplanet / ANE-ImagePicker

Air Native Extension for mobile camera and gallery features (iOS + Android)
Apache License 2.0
80 stars 48 forks source link

a bug, main activity death when crop image in android #4

Closed yindetao closed 11 years ago

yindetao commented 11 years ago

thanks for your great job first !!

the ANE works fine in iOS, but in android, it sometimes causes the main activity death when picking image with cropping, so I modified some code in class AirImagePickerExtensionContext, and then it works fine, I hope they could give some help.

I copied some code from here: http://www.open-open.com/lib/view/open1352201409844.html

and here is the code diff for AirImagePickerExtensionContext :

@@ -201,6 +202,7 @@ public class AirImagePickerExtensionContext extends FREContext if (_pickerActivity != null) { _pickerActivity.finish();

apologize for my poor english : )

yindetao commented 11 years ago

the main activity still die, maybe the explicit property value of outputX and outputY reduced the probability. : (