Commit b8901d54 authored by Daniel Wolf's avatar Daniel Wolf

The default handler has to be called after showing the dialog

parent 82b4210c
......@@ -21,11 +21,11 @@ public class DNSChanger extends Application {
public void uncaughtException(Thread t, Throwable e) {
LogFactory.writeMessage(DNSChanger.this, new String[]{LOG_TAG, LogFactory.Tag.ERROR.toString()}, "Caught uncaught exception");
LogFactory.writeStackTrace(DNSChanger.this, new String[]{LOG_TAG, LogFactory.Tag.ERROR.toString()}, e);
if (defaultHandler != null) defaultHandler.uncaughtException(t, e);
if (showErrorDialog(e)) {
ErrorDialogActivity.show(DNSChanger.this, e);
System.exit(2);
}
if (defaultHandler != null) defaultHandler.uncaughtException(t, e);
}
};
private Thread.UncaughtExceptionHandler defaultHandler;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment