mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 19:56:02 +01:00
Fix conversation memory leak.
This commit is contained in:
@@ -102,6 +102,13 @@ public final class LiveRecipient {
|
||||
ThreadUtil.postToMain(() -> observableLiveData.observe(owner, observer));
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes observer of this data.
|
||||
*/
|
||||
public void removeObserver(@NonNull Observer<Recipient> observer) {
|
||||
ThreadUtil.runOnMain(() -> observableLiveData.removeObserver(observer));
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all observers of this data registered for the given LifecycleOwner.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user