|
|
@ -1,8 +1,6 @@
|
|
|
|
diff --git a/home/marcel/support/lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/ComputableLiveData.java b/app/src/main/java/androidx/lifecycle/ComputableLiveData.java
|
|
|
|
--- /home/marcel/support/lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/ComputableLiveData.java 2020-03-23 17:03:45.426122318 +0100
|
|
|
|
index 837a35dbf..cc375b15b 100644
|
|
|
|
+++ /home/marcel/email/app/src/main/java/androidx/lifecycle/ComputableLiveData.java 2020-06-14 11:48:36.977868184 +0200
|
|
|
|
--- a/home/marcel/support/lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/ComputableLiveData.java
|
|
|
|
@@ -96,13 +96,26 @@ public abstract class ComputableLiveData
|
|
|
|
+++ b/app/src/main/java/androidx/lifecycle/ComputableLiveData.java
|
|
|
|
|
|
|
|
@@ -96,7 +96,16 @@ public abstract class ComputableLiveData<T> {
|
|
|
|
|
|
|
|
// as long as it is invalid, keep computing.
|
|
|
|
// as long as it is invalid, keep computing.
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
T value = null;
|
|
|
|
T value = null;
|
|
|
@ -19,3 +17,13 @@ index 837a35dbf..cc375b15b 100644
|
|
|
|
computed = true;
|
|
|
|
computed = true;
|
|
|
|
value = compute();
|
|
|
|
value = compute();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (computed) {
|
|
|
|
|
|
|
|
mLiveData.postValue(value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
+ } catch (Throwable ex) {
|
|
|
|
|
|
|
|
+ // java.lang.IllegalStateException: Couldn't read row xxx column yyy
|
|
|
|
|
|
|
|
+ eu.faircode.email.Log.e(ex);
|
|
|
|
|
|
|
|
+ mInvalid.set(true);
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
// release compute lock
|
|
|
|
|
|
|
|
mComputing.set(false);
|