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

Abierto
#927 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, kotlin
Área
frontend, mobile

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Kotlin
Estrellas
760
Forks
122
Merge medio
22 h 38 min
PR fusionados (30 d)
80

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ProdigyV21/ARVIO

Todos los issues de ProdigyV21/ARVIO

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.