use of rx.subscriptions.CompositeSubscription in project ListenerMusicPlayer by hefuyicoder.
the class ArtistDetailPresenter method attachView.
@Override
public void attachView(ArtistDetailContract.View view) {
mView = view;
mCompositeSubscription = new CompositeSubscription();
}
use of rx.subscriptions.CompositeSubscription in project ListenerMusicPlayer by hefuyicoder.
the class RxBus method addSubscription.
/**
* 保存订阅后的subscription
* @param o
* @param subscription
*/
public void addSubscription(Object o, Subscription subscription) {
if (mSubscriptionMap == null) {
mSubscriptionMap = new HashMap<>();
}
String key = o.getClass().getName();
if (mSubscriptionMap.get(key) != null) {
mSubscriptionMap.get(key).add(subscription);
} else {
CompositeSubscription compositeSubscription = new CompositeSubscription();
compositeSubscription.add(subscription);
mSubscriptionMap.put(key, compositeSubscription);
}
}
use of rx.subscriptions.CompositeSubscription in project ListenerMusicPlayer by hefuyicoder.
the class ArtistPresenter method attachView.
@Override
public void attachView(ArtistContract.View view) {
mView = view;
mCompositeSubscription = new CompositeSubscription();
}
use of rx.subscriptions.CompositeSubscription in project ListenerMusicPlayer by hefuyicoder.
the class FolderSongsPresenter method attachView.
@Override
public void attachView(FolderSongsContract.View view) {
mView = view;
mCompositeSubscription = new CompositeSubscription();
}
use of rx.subscriptions.CompositeSubscription in project ListenerMusicPlayer by hefuyicoder.
the class PlayRankingPresenter method attachView.
@Override
public void attachView(PlayRankingContract.View view) {
mView = view;
mCompositeSubscription = new CompositeSubscription();
}
Aggregations