Code cleanup
This commit is contained in:
parent
f4416fe007
commit
4326354ca6
|
@ -392,11 +392,10 @@ public class SubscriptionFragment extends BaseStateFragment<List<SubscriptionEnt
|
||||||
|
|
||||||
@SuppressLint("CheckResult")
|
@SuppressLint("CheckResult")
|
||||||
private void deleteChannel (ChannelInfoItem selectedItem) {
|
private void deleteChannel (ChannelInfoItem selectedItem) {
|
||||||
final io.reactivex.Observable<List<SubscriptionEntity>> observable = subscriptionService.subscriptionTable()
|
subscriptionService.subscriptionTable()
|
||||||
.getSubscription(selectedItem.getServiceId(), selectedItem.getUrl())
|
.getSubscription(selectedItem.getServiceId(), selectedItem.getUrl())
|
||||||
.toObservable();
|
.toObservable()
|
||||||
|
.observeOn(Schedulers.io())
|
||||||
observable.observeOn(Schedulers.io())
|
|
||||||
.subscribe(getDeleteObserver());
|
.subscribe(getDeleteObserver());
|
||||||
|
|
||||||
Toast.makeText(activity, getString(R.string.channel_unsubscribed), Toast.LENGTH_SHORT).show();
|
Toast.makeText(activity, getString(R.string.channel_unsubscribed), Toast.LENGTH_SHORT).show();
|
||||||
|
|
Loading…
Reference in New Issue