ubu
11/04/2018, 11:31 AMFragment (A) that subscribes a ViewModel (V) in OnActivityCreated(). When opening this Fragment (A), I receive an update from LiveData.
Then I open another Fragment (B), then get back to the first one (A). It gets inflated, and onCreateView(), onViewCreated() and OnActivityCreated() are called. We've just subscribed the ViewModel (V), but it does not emit any item (the most recent update). I'd expect a LiveData would behave like a BehaviorSubject in RxJava2 (tell me if this comparison is appropriate), but there are no updates.
What could go wrong?
Any help would be appreciated.Sangeet
11/04/2018, 8:08 PMgetActivity()ubu
11/06/2018, 12:46 PMmuralimohan962
11/07/2018, 8:05 AM