mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-13 12:33:42 +02:00
Prevent ROOM tracker from looping
This commit is contained in:
@@ -93,6 +93,8 @@ class RoomTrackingLiveData<T> extends LiveData<T> {
|
||||
//throw new RuntimeException("Exception while computing database"
|
||||
// + " live data.", e);
|
||||
computed = false;
|
||||
mInvalid.set(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (computed) {
|
||||
@@ -127,6 +129,7 @@ class RoomTrackingLiveData<T> extends LiveData<T> {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
RoomTrackingLiveData(
|
||||
RoomDatabase database,
|
||||
|
||||
Reference in New Issue
Block a user