From a183673beccfaac3779196208ced00c10ba6de91 Mon Sep 17 00:00:00 2001 From: Stefan Simon Date: Tue, 19 Sep 2017 16:03:24 +0200 Subject: [PATCH 1/2] Catch all throwables --- .../java/com/steelkiwi/cropiwa/image/CropImageTask.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 +} From 06b493aee62af79b61bc2a492642038de6665299 Mon Sep 17 00:00:00 2001 From: Stefan Simon Date: Tue, 19 Sep 2017 16:11:46 +0200 Subject: [PATCH 2/2] Update version number --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] }