Disposable now is cleaned properly

This commit is contained in:
Somethingweirdhere 2018-06-30 02:20:01 +02:00
parent b9ea7ce066
commit 181a14ce59
1 changed files with 2 additions and 1 deletions

View File

@ -405,6 +405,7 @@ public class SubscriptionFragment extends BaseStateFragment<List<SubscriptionEnt
@SuppressLint("CheckResult")
private void deleteChannel (ChannelInfoItem selectedItem) {
disposables.add(
ExtractorHelper.getChannelInfo(selectedItem.getServiceId(), selectedItem.getUrl(), true)
.subscribeOn(Schedulers.io())
.observeOn(Schedulers.newThread())
@ -413,7 +414,7 @@ public class SubscriptionFragment extends BaseStateFragment<List<SubscriptionEnt
.getSubscription(result.getServiceId(), result.getUrl())
.blockingFirst();
subscriptionService.subscriptionTable().delete(toDelete);
});
}));
}
private void resetFragment() {