mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 05:34:51 +00:00
Update livedata patch
This commit is contained in:
parent
03da07900e
commit
2a2a7159c9
1 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
index 837a35dbf..cc375b15b 100644
|
||||
--- a/home/marcel/support/lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/ComputableLiveData.java
|
||||
+++ b/app/src/main/java/androidx/lifecycle/ComputableLiveData.java
|
||||
@@ -96,7 +96,16 @@ public abstract class ComputableLiveData<T> {
|
||||
--- /home/marcel/support/lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/ComputableLiveData.java 2020-03-23 17:03:45.426122318 +0100
|
||||
+++ /home/marcel/email/app/src/main/java/androidx/lifecycle/ComputableLiveData.java 2020-06-14 11:48:36.977868184 +0200
|
||||
@@ -96,13 +96,26 @@ public abstract class ComputableLiveData
|
||||
// as long as it is invalid, keep computing.
|
||||
try {
|
||||
T value = null;
|
||||
|
@ -19,3 +17,13 @@ index 837a35dbf..cc375b15b 100644
|
|||
computed = true;
|
||||
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);
|
Loading…
Reference in a new issue