Skip to content

Commit 6b0e40b

Browse files
committed
open a channel uploads as a channel
1 parent 298b526 commit 6b0e40b

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/BrowsePresenter.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,7 @@ public void onVideoItemClicked(Video item) {
394394
return;
395395
}
396396

397-
// Check that channels new look enabled and we're on the first column
398-
if (belongsToChannelUploadsMultiGrid(item)) {
399-
updateChannelUploadsMultiGrid(item);
400-
} else {
401-
VideoActionPresenter.instance(getContext()).apply(item);
402-
}
397+
VideoActionPresenter.instance(getContext()).apply(item);
403398
}
404399

405400
@Override

common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/dialogs/VideoActionPresenter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void apply(Video item) {
2828
// Show playlist contents in channel instead of instant playback
2929
if (item.hasVideo() && !item.isPlaylistInChannel()) {
3030
PlaybackPresenter.instance(getContext()).openVideo(item);
31-
} else if (item.hasChannel()) {
31+
} else if (item.hasChannel() || item.belongsToChannelUploads()) {
3232
MediaServiceManager.chooseChannelPresenter(getContext(), item);
3333
} else if (item.hasPlaylist() || item.hasNestedItems()) {
3434
if (item.belongsToMusic()) {

common/src/main/java/com/liskovsoft/smartyoutubetv2/common/misc/MediaServiceManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public void onAccountChanged(Account account) {
465465
* Channels could be of two types: regular (usr channel) and playlist channel (contains single row, try search: 'Mon mix')
466466
*/
467467
public static void chooseChannelPresenter(Context context, Video item) {
468-
if (item.hasVideo()) { // regular channel
468+
if (item.hasVideo() || item.belongsToChannelUploads()) { // regular channel
469469
ChannelPresenter.instance(context).openChannel(item);
470470
return;
471471
}

0 commit comments

Comments
 (0)