Commit b8901d54 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

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)) {, e);
if (defaultHandler != null) defaultHandler.uncaughtException(t, e);
private Thread.UncaughtExceptionHandler defaultHandler;
Supports Markdown
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