Skip to content

Commit 74ebe07

Browse files
Bug fix when watching a multi-hour show (e.g. movie), the staleness check fires because other shows have ended/started. This effectively made the quick channel changer forget what channel was being watch and places the focus at index 0.
Set the focused position to > 0 and not => 0.
1 parent 3022058 commit 74ebe07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ private void prepareChannelAdapter() {
13741374
UUID focusedChannelId = null;
13751375
if (mQuickChannelChangerVisible && mCircularChannelAdapter != null) {
13761376
int focusedPosition = mPopupRowPresenter.getPosition();
1377-
if (focusedPosition >= 0 && mCircularChannelAdapter.getRealSize() > 0) {
1377+
if (focusedPosition > 0 && mCircularChannelAdapter.getRealSize() > 0) {
13781378
Object focusedItem = mCircularChannelAdapter.get(focusedPosition);
13791379
if (focusedItem instanceof BaseItemDto) {
13801380
focusedChannelId = ((BaseItemDto) focusedItem).getId();

0 commit comments

Comments
 (0)