[BUG]: Carousel is static in Netflix-style home layout

オープン
#927 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, kotlin
領域
frontend, mobile

調査の方向性

Start with HomeScreen.kt around lines 967 and 981 and NetflixHome.kt around stableNetflixBillboard and handleNetflixHomeKey; compare the existing MobileHeroCarousel pager. Trace how the selected title feeds the billboard logo and trailer, then decide how Left/Right should interact with the buttons. Done when the TV billboard advances among its candidates, pauses as specified, and title changes update its trailer and logo.

索引モデルが issue の本文から書いたものです。

説明

type:bug

Summary

With the Netflix-style home layout enabled on Android TV, the large billboard card at the top of the home screen shows a single title and never moves on to another. It looks like a carousel but behaves like a static banner.

Steps to reproduce

  1. On Android TV, turn on the Netflix-style home layout in Settings.
  2. Open the home screen and stay on the billboard at the top.
  3. Wait, or press Left/Right.

Expected

The billboard cycles through several titles, either automatically or when the user pages through them.

Actual

  • The same title stays up indefinitely.
  • Left/Right only move between the billboard's two buttons. They never change the title.

Findings from the code

  • HomeScreen.kt (~line 967): billboardItem is a single MediaItem?, not a list.
  • HomeScreen.kt (~line 981): it's chosen once with stableNetflixBillboard(restored, candidates) { it.random() }, a random pick from the candidates.
  • NetflixHome.kt (stableNetflixBillboard, ~line 215) deliberately keeps the previously selected item, so it only changes if the item leaves the candidate list or the profile changes.
  • NetflixHome.kt (handleNetflixHomeKey, ~lines 243-244): Left/Right on the billboard only set heroButtonIndex to 0 or 1.
  • No timer, pager or auto-advance drives the TV billboard. The only effects in the billboard code handle focus, scrolling and trailer playback.
  • netflixBillboardCandidates() already builds a list of candidates from Top 10 / trending, so the data for a carousel already exists.
  • For comparison, the mobile layout (MobileHeroCarousel in HomeScreen.kt) does use a pager.

Suggested direction

  • Keep the full candidate list instead of a single item.
  • Rotate automatically every ~8-10 seconds, pausing while the billboard is unfocused or a trailer is playing.
  • Let Left/Right step through titles while the billboard is focused. This needs a decision, since those keys currently switch between the Play and More Info buttons.
  • Make sure the trailer and logo update correctly when the title changes.

Environment

Android TV, Netflix-style home layout enabled. Findings above come from reading the code on main. I haven't verified the behaviour on a device beyond the observation described.

主要言語
Kotlin
スター
760
フォーク
122
平均マージ
22時間 38分
マージ済み PR(30日)
80

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ProdigyV21/ARVIO のほかの issue

ProdigyV21/ARVIO の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。