Add deprecation notice to SingleLiveEvent.

fork-5.53.8
Alex Hart 2022-09-13 10:50:22 -03:00 zatwierdzone przez Greyson Parrelli
rodzic 6417f5cce0
commit 9331e9ce89
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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> {