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:
parent
b9ea7ce066
commit
181a14ce59
@ -405,6 +405,7 @@ public class SubscriptionFragment extends BaseStateFragment<List<SubscriptionEnt
|
|||||||
|
|
||||||
@SuppressLint("CheckResult")
|
@SuppressLint("CheckResult")
|
||||||
private void deleteChannel (ChannelInfoItem selectedItem) {
|
private void deleteChannel (ChannelInfoItem selectedItem) {
|
||||||
|
disposables.add(
|
||||||
ExtractorHelper.getChannelInfo(selectedItem.getServiceId(), selectedItem.getUrl(), true)
|
ExtractorHelper.getChannelInfo(selectedItem.getServiceId(), selectedItem.getUrl(), true)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(Schedulers.newThread())
|
.observeOn(Schedulers.newThread())
|
||||||
@ -413,7 +414,7 @@ public class SubscriptionFragment extends BaseStateFragment<List<SubscriptionEnt
|
|||||||
.getSubscription(result.getServiceId(), result.getUrl())
|
.getSubscription(result.getServiceId(), result.getUrl())
|
||||||
.blockingFirst();
|
.blockingFirst();
|
||||||
subscriptionService.subscriptionTable().delete(toDelete);
|
subscriptionService.subscriptionTable().delete(toDelete);
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void resetFragment() {
|
private void resetFragment() {
|
||||||
|
Loading…
Reference in New Issue
Block a user