This commit is contained in:
PavelRatushnyi 2017-09-30 15:24:55 +03:00
parent fb38f4cde1
commit 5921e1f9ca

View file

@ -548,7 +548,10 @@ public class OsmandApplication extends MultiDexApplication {
}
public void startApplication() {
Thread.setDefaultUncaughtExceptionHandler(new DefaultExceptionHandler());
UncaughtExceptionHandler uncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
if (!(uncaughtExceptionHandler instanceof DefaultExceptionHandler)) {
Thread.setDefaultUncaughtExceptionHandler(new DefaultExceptionHandler());
}
appInitializer.startApplication();
}