commit
c6d4d4122d
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue