From 0df1f765e9c5fec633ef68580e3378e7c4fbce9e Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Fri, 12 May 2017 08:45:12 +1000 Subject: [PATCH] Don't die when failing to bluetooth apk. --- app/src/main/java/org/fdroid/fdroid/FDroidApp.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/fdroid/fdroid/FDroidApp.java b/app/src/main/java/org/fdroid/fdroid/FDroidApp.java index c543aa2d2..59d67e73f 100644 --- a/app/src/main/java/org/fdroid/fdroid/FDroidApp.java +++ b/app/src/main/java/org/fdroid/fdroid/FDroidApp.java @@ -400,11 +400,8 @@ public class FDroidApp extends Application { Log.e(TAG, "Could not get application info to send via bluetooth", e); found = false; } catch (IOException e) { - // This will crash the app, because we want to get error reports of this. - // Additionally, it is not going to happen in the background or other important times - // (like application startup), only when the user actively performs a function (i.e. share - // via bluetooth). As such, it should not be too much of a burden to crash here. - throw new RuntimeException("Error preparing file to send via Bluetooth", e); + Exception toLog = new RuntimeException("Error preparing file to send via Bluetooth", e); + ACRA.getErrorReporter().handleException(toLog, false); } if (sendBt != null) {