Add deprecation notice to SingleLiveEvent.

This commit is contained in:
Alex Hart 2022-09-13 10:50:22 -03:00 committed by Greyson Parrelli
parent 6417f5cce0
commit 9331e9ce89

View file

@ -36,6 +36,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
* explicit call to setValue() or call().
* <p>
* Note that only one observer is going to be notified of changes.
*
* @deprecated Use a PublishSubject or PublishProcessor instead.
*/
public class SingleLiveEvent<T> extends MutableLiveData<T> {