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

Aperta
#927 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, kotlin
Ambito
frontend, mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Kotlin
Stelle
760
Fork
122
Merge medio
22h 38m
PR unite (30g)
80

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ProdigyV21/ARVIO

Tutte le issue di ProdigyV21/ARVIO

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.