Merge pull request #4504 from osmandapp/crash_logs

Fix #4296
This commit is contained in:
vshcherb 2017-10-01 11:27:17 +02:00 committed by GitHub
commit c6d4d4122d

View file

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