Changes in the header section for history#13368
Changes in the header section for history#13368Cellulose-Type-C wants to merge 6 commits intoTeamNewPipe:devfrom
Conversation
…ry-screen Add date section headers to history statistics list
…-history-screen Add DATE_HEADER items and UI for date headers in history statistics list
|
Please note this personal project. I was kinda frustrated by tiny date inline for Newpipe so I changed the codebase so it can show a big banner under which all videos are shown for the same date. |
What is it?
Description of the changes in your PR
Added a new DATE_HEADER variant to LocalItemType and introduced a DateHeaderItem model carrying a LocalDate for section grouping in history lists.
Added a dedicated date header row layout (list_date_header_item.xml) with emphasized text and container background styling for visual separation between date groups.
Updated LocalItemListAdapter to support a new date-header view type: type mapping, holder creation/binding, and full-span behavior in grid mode so headers render as separators across the whole row.
Changed history result processing in StatisticsPlaylistFragment to return List, inject DateHeaderItem boundaries only for LAST_PLAYED, keep MOST_PLAYED flat, and pass the mixed list directly into the adapter.
Adjusted queue-start index calculation to count only stream items so interleaved date headers do not shift the playback starting position.
Removed per-item date text from statistic stream detail lines; details now show watch count + service only, with date represented by section headers above.
Before/After Screenshots/Screen Record
Fixes the following issue(s)
Relies on the following changes
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence