• Xing Liu's avatar
    Read later: Introduce BookmarkListEntry. · f4786b70
    Xing Liu authored
    BookmarkItemsAdapter currently uses the backend data class BookmarkItem
    as its data object. This is not flexible to add decorative or non
    bookmark ViewHolders to its recycler view.
    
    Also the sync promo header uses null to identify itself to the recycler
    view, which is kind of hacky, and UI logic assumes null is the place
    holder for sync promo header.
    
    This CL introduces BookmarkListEntry, which can represent any kind of
    ViewHolders, and carries different kind of data objects. Sync promo
    header also has a BookmarkListEntry object.
    
    Bug: 1128074
    Change-Id: Id11c0164eb06cf3a59b35eb6cad7e33e4f9d19f4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2461724
    Commit-Queue: Xing Liu <xingliu@chromium.org>
    Reviewed-by: default avatarBrandon Wylie <wylieb@chromium.org>
    Reviewed-by: default avatarTheresa  <twellington@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#816421}
    f4786b70
chrome_java_sources.gni 140 KB