remove setDefaultUncaughtExceptionHandler temporary

This commit is contained in:
Milos Kozak 2019-12-31 12:01:15 +01:00
parent 7518537108
commit db9b453276
2 changed files with 3 additions and 2 deletions

View file

@ -110,7 +110,7 @@ android {
targetSdkVersion 28
multiDexEnabled true
versionCode 1500
version "2.6-dev"
version "2.6-dev-dagger3"
buildConfigField "String", "VERSION", '"' + version + '"'
buildConfigField "String", "BUILDVERSION", '"' + generateGitBuild() + '-' + generateDate() + '"'
buildConfigField "String", "REMOTE", '"' + generateGitRemote() + '"'

View file

@ -174,14 +174,15 @@ public class MainApp extends DaggerApplication {
LocaleHelper.INSTANCE.update(this);
sDatabaseHelper = OpenHelperManager.getHelper(sInstance, DatabaseHelper.class);
/* TODO: put back
Thread.setDefaultUncaughtExceptionHandler((thread, ex) -> {
if (ex instanceof InternalError) {
// usually the app trying to spawn a thread while being killed
return;
}
log.error("Uncaught exception crashing app", ex);
});
*/
try {
if (FabricPrivacy.fabricEnabled()) {