1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-17 23:34:54 +00:00

Disposable now is cleaned properly

This commit is contained in:
Somethingweirdhere 2018-06-30 02:20:01 +02:00
parent b9ea7ce066
commit 181a14ce59

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() {