mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-02-05 06:12:06 -06:00
subscribed channel refactor
This commit is contained in:
Submodule MediaServiceCore updated: 44f4447db5...51c6b9782e
@@ -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()) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user