From 9331e9ce893b025c201cafec8dc05b3449b7d393 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Tue, 13 Sep 2022 10:50:22 -0300 Subject: [PATCH] Add deprecation notice to SingleLiveEvent. --- .../java/org/thoughtcrime/securesms/util/SingleLiveEvent.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/util/SingleLiveEvent.java b/app/src/main/java/org/thoughtcrime/securesms/util/SingleLiveEvent.java index 38081253b..35f785348 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/util/SingleLiveEvent.java +++ b/app/src/main/java/org/thoughtcrime/securesms/util/SingleLiveEvent.java @@ -36,6 +36,8 @@ import java.util.concurrent.atomic.AtomicBoolean; * explicit call to setValue() or call(). *

* Note that only one observer is going to be notified of changes. + * + * @deprecated Use a PublishSubject or PublishProcessor instead. */ public class SingleLiveEvent extends MutableLiveData {