mirror of
https://github.com/mupen64plus-ae/acra.git
synced 2025-02-20 04:54:15 +00:00
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:
parent
c9b914901f
commit
8b5f3db117
@ -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
|
||||
|
@ -28,6 +28,6 @@ package org.acra;
|
||||
* ok to send a report</li>
|
||||
* </ul>
|
||||
*/
|
||||
public enum ReportingInteractionMode {
|
||||
enum ReportingInteractionMode {
|
||||
SILENT, NOTIFICATION, TOAST;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user