diff --git a/CrashReport/src/org/acra/ErrorReporter.java b/CrashReport/src/org/acra/ErrorReporter.java index 1cb76a6..abebd0b 100644 --- a/CrashReport/src/org/acra/ErrorReporter.java +++ b/CrashReport/src/org/acra/ErrorReporter.java @@ -379,7 +379,7 @@ public class ErrorReporter implements Thread.UncaughtExceptionHandler { * @param reportingInteractionMode * The desired interaction mode. */ - public void handleException(Throwable e, + void handleException(Throwable e, ReportingInteractionMode reportingInteractionMode) { if (reportingInteractionMode == null) { reportingInteractionMode = mReportingInteractionMode; @@ -458,6 +458,10 @@ public class ErrorReporter implements Thread.UncaughtExceptionHandler { public void handleException(Throwable e) { handleException(e, mReportingInteractionMode); } + + public void handleSilentException(Throwable e) { + handleException(e, ReportingInteractionMode.SILENT); + } /** * Send a status bar notification. The action triggered when the diff --git a/CrashReport/src/org/acra/ReportingInteractionMode.java b/CrashReport/src/org/acra/ReportingInteractionMode.java index fe94d89..4d5ec08 100644 --- a/CrashReport/src/org/acra/ReportingInteractionMode.java +++ b/CrashReport/src/org/acra/ReportingInteractionMode.java @@ -28,6 +28,6 @@ package org.acra; * ok to send a report * */ -public enum ReportingInteractionMode { +enum ReportingInteractionMode { SILENT, NOTIFICATION, TOAST; } \ No newline at end of file