diff --git a/build.gradle b/build.gradle index 39efa41..3e9aa58 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ ext { groupId = 'com.steelkiwi' uploadName = 'cropiwa' description = 'Configurable Custom Crop widget for Android' - publishVersion = '1.0.3' + publishVersion = '1.0.4' licences = ['Apache-2.0'] } diff --git a/library/src/main/java/com/steelkiwi/cropiwa/image/CropImageTask.java b/library/src/main/java/com/steelkiwi/cropiwa/image/CropImageTask.java index 762ad22..df067db 100644 --- a/library/src/main/java/com/steelkiwi/cropiwa/image/CropImageTask.java +++ b/library/src/main/java/com/steelkiwi/cropiwa/image/CropImageTask.java @@ -9,7 +9,6 @@ import com.steelkiwi.cropiwa.shape.CropIwaShapeMask; import com.steelkiwi.cropiwa.util.CropIwaUtils; -import java.io.IOException; import java.io.OutputStream; /** @@ -57,8 +56,8 @@ protected Throwable doInBackground(Void... params) { bitmap.recycle(); cropped.recycle(); - } catch (IOException e) { - return e; + } catch (Throwable t) { + return t; } return null; } @@ -71,4 +70,4 @@ protected void onPostExecute(Throwable throwable) { CropIwaResultReceiver.onCropFailed(context, throwable); } } -} \ No newline at end of file +}