Making ReportingInteractionMode public was not a good idea as handling Exception with any other mode than SILENT would require additional resource ids.

Offering a handleSilentException should be enough to fulfill developers requirements.
This commit is contained in:
Kevin Gaudin 2010-05-24 23:17:58 +00:00
parent c9b914901f
commit 8b5f3db117
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -28,6 +28,6 @@ package org.acra;
* ok to send a report</li>
* </ul>
*/
public enum ReportingInteractionMode {
enum ReportingInteractionMode {
SILENT, NOTIFICATION, TOAST;
}