Skip to content
Snippets Groups Projects
Commit 07154930 authored by akwizgran's avatar akwizgran
Browse files

Removed UncaughtExceptionHandler (doesn't work on Android).

parent 398f752c
Branches
Tags
No related merge requests found
......@@ -6,7 +6,6 @@ import static java.util.logging.Level.INFO;
import static java.util.logging.Level.WARNING;
import static net.sf.briar.android.widgets.CommonLayoutParams.MATCH_MATCH;
import java.lang.Thread.UncaughtExceptionHandler;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executor;
......@@ -71,17 +70,6 @@ public class HomeScreenActivity extends BriarActivity {
// The activity was launched from the splash screen
showButtons();
}
// Ensure uncaught exceptions thrown on worker threads kill the JVM
final UncaughtExceptionHandler handler =
Thread.getDefaultUncaughtExceptionHandler();
UncaughtExceptionHandler die = new UncaughtExceptionHandler() {
public void uncaughtException(Thread thread, Throwable throwable) {
handler.uncaughtException(thread, throwable);
if(LOG.isLoggable(INFO)) LOG.info("Exiting");
System.exit(0);
}
};
Thread.setDefaultUncaughtExceptionHandler(die);
// Start the service and bind to it
startService(new Intent(BriarService.class.getName()));
bindService(new Intent(BriarService.class.getName()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment