mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 19:05:23 +01:00
Force crash reporting for DB lock
This commit is contained in:
@@ -419,6 +419,8 @@ public abstract class DB extends RoomDatabase {
|
||||
|
||||
Log.i("Disabled view invalidation");
|
||||
} catch (ReflectiveOperationException ex) {
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
@@ -459,6 +461,8 @@ public abstract class DB extends RoomDatabase {
|
||||
lock.value.release();
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
}
|
||||
Log.i("DB critical section end");
|
||||
@@ -584,6 +588,7 @@ public abstract class DB extends RoomDatabase {
|
||||
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
|
||||
at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:706)
|
||||
*/
|
||||
// Should never happen
|
||||
Log.forceCrashReporting();
|
||||
Log.e(ex);
|
||||
// FrameworkSQLiteOpenHelper.innerGetDatabase will delete the database
|
||||
|
||||
Reference in New Issue
Block a user