subscribed channel refactor

This commit is contained in:
Yuriy Liskov
2024-12-26 05:06:11 +02:00
parent f9fa29db16
commit 91edcbdb81
3 changed files with 7 additions and 7 deletions

View File

@@ -1136,11 +1136,11 @@ public class BrowsePresenter extends BasePresenter<BrowseView> implements Sectio
private void appendLocalSubscriptions() {
updateVideoGrid(getCurrentSection(),
mContentService.getSubscriptionsObserve(
ChannelGroupServiceWrapper.instance(getContext()).findSubscribedChannelIds()), -1);
ChannelGroupServiceWrapper.instance(getContext()).getSubscribedChannelIds()), -1);
}
private void appendLocalChannels() {
ChannelGroup subscriptions = ChannelGroupServiceWrapper.instance(getContext()).findSubscribedChannelGroup();
ChannelGroup subscriptions = ChannelGroupServiceWrapper.instance(getContext()).getSubscribedChannelGroup();
if (subscriptions != null) {
List<Video> channels = new ArrayList<>();
for (ChannelGroup.Channel channel : subscriptions.getChannels()) {

View File

@@ -54,12 +54,12 @@ public class ChannelGroupServiceWrapper implements ProfileChangeListener {
return mService.findChannelIdsForGroup(channelGroupId);
}
public String[] findSubscribedChannelIds() {
return mService.findSubscribedChannelIds();
public String[] getSubscribedChannelIds() {
return mService.getSubscribedChannelIds();
}
public ChannelGroup findSubscribedChannelGroup() {
return mService.findSubscribedChannelGroup();
public ChannelGroup getSubscribedChannelGroup() {
return mService.getSubscribedChannelGroup();
}
public ChannelGroup findChannelGroup(int channelGroupId) {