Merge pull request #1977 from jotomo/tombstone-writings

Log an uncaught exception before it crashes the app.
This commit is contained in:
Milos Kozak 2019-08-22 13:56:47 +02:00 committed by GitHub
commit ac8dffe44c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,6 +139,8 @@ public class MainApp extends Application {
sConstraintsChecker = new ConstraintChecker();
sDatabaseHelper = OpenHelperManager.getHelper(sInstance, DatabaseHelper.class);
Thread.setDefaultUncaughtExceptionHandler((thread, ex) -> log.error("Uncaught exception crashing app", ex));
try {
if (FabricPrivacy.fabricEnabled()) {
Fabric.with(this, new Crashlytics());