mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-24 09:00:31 +00:00
Code looking nicer
This commit is contained in:
parent
f2f275512d
commit
b9ea7ce066
@ -409,7 +409,9 @@ public class SubscriptionFragment extends BaseStateFragment<List<SubscriptionEnt
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(Schedulers.newThread())
|
||||
.subscribe((@NonNull ChannelInfo result) -> {
|
||||
List<SubscriptionEntity> toDelete = subscriptionService.subscriptionTable().getSubscription(result.getServiceId(), result.getUrl()).blockingFirst();
|
||||
List<SubscriptionEntity> toDelete = subscriptionService.subscriptionTable()
|
||||
.getSubscription(result.getServiceId(), result.getUrl())
|
||||
.blockingFirst();
|
||||
subscriptionService.subscriptionTable().delete(toDelete);
|
||||
});
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ import org.schabi.newpipe.extractor.Info;
|
||||
import org.schabi.newpipe.extractor.ListExtractor.InfoItemsPage;
|
||||
import org.schabi.newpipe.extractor.NewPipe;
|
||||
import org.schabi.newpipe.extractor.channel.ChannelInfo;
|
||||
import org.schabi.newpipe.extractor.channel.ChannelInfoItem;
|
||||
import org.schabi.newpipe.extractor.exceptions.ContentNotAvailableException;
|
||||
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
||||
import org.schabi.newpipe.extractor.exceptions.ReCaptchaException;
|
||||
|
Loading…
Reference in New Issue
Block a user