Merge pull request #1977 from jotomo/tombstone-writings
Log an uncaught exception before it crashes the app.
This commit is contained in:
commit
ac8dffe44c
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue