Don't die when failing to bluetooth apk.

This commit is contained in:
Peter Serwylo 2017-05-12 08:45:12 +10:00
parent 09ad7fe3d0
commit 0df1f765e9

View File

@ -400,11 +400,8 @@ public class FDroidApp extends Application {
Log.e(TAG, "Could not get application info to send via bluetooth", e); Log.e(TAG, "Could not get application info to send via bluetooth", e);
found = false; found = false;
} catch (IOException e) { } catch (IOException e) {
// This will crash the app, because we want to get error reports of this. Exception toLog = new RuntimeException("Error preparing file to send via Bluetooth", e);
// Additionally, it is not going to happen in the background or other important times ACRA.getErrorReporter().handleException(toLog, false);
// (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);
} }
if (sendBt != null) { if (sendBt != null) {