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

Đang mở
#927 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin
Lĩnh vực
frontend, mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Kotlin
Star
760
Fork
122
Merge trung bình
22 giờ 38 phút
Pull request đã merge (30 ngày)
80

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ProdigyV21/ARVIO

Tất cả issue của ProdigyV21/ARVIO

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.