You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FairEmail/patches/room.patch

26 lines
1.2 KiB

--- /home/marcel/support/room/runtime/src/main/java/androidx/room/RoomTrackingLiveData.java 2019-07-27 12:47:44.950985792 +0200
+++ app/src/main/java/androidx/room/RoomTrackingLiveData.java 2019-07-28 15:50:45.670936158 +0200
@@ -89,8 +89,12 @@ class RoomTrackingLiveData<T> extends Li
try {
value = mComputeFunction.call();
} catch (Exception e) {
- throw new RuntimeException("Exception while computing database"
- + " live data.", e);
+ eu.faircode.email.Log.w(e);
+ //throw new RuntimeException("Exception while computing database"
+ // + " live data.", e);
+ computed = false;
+ mInvalid.set(false);
+ break;
}
}
if (computed) {
@@ -125,6 +129,7 @@ class RoomTrackingLiveData<T> extends Li
}
}
};
+
@SuppressLint("RestrictedApi")
RoomTrackingLiveData(
RoomDatabase database,