mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Fixed forced crash reports
This commit is contained in:
@@ -420,8 +420,7 @@ public abstract class DB extends RoomDatabase {
|
||||
Log.i("Disabled view invalidation");
|
||||
} catch (ReflectiveOperationException ex) {
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
Log.forceCrashReport(context, ex);
|
||||
}
|
||||
|
||||
sInstance.getInvalidationTracker().addObserver(new InvalidationTracker.Observer(DB_TABLES) {
|
||||
@@ -462,8 +461,7 @@ public abstract class DB extends RoomDatabase {
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
Log.forceCrashReport(context, ex);
|
||||
}
|
||||
Log.i("DB critical section end");
|
||||
}
|
||||
@@ -589,8 +587,7 @@ public abstract class DB extends RoomDatabase {
|
||||
at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:706)
|
||||
*/
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
Log.forceCrashReport(context, ex);
|
||||
// FrameworkSQLiteOpenHelper.innerGetDatabase will delete the database
|
||||
throw ex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user