You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iceraven-browser/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/topsites
Mugurell 551031eee3 For #18672 - Renaming a TopSite changes just the title
Previously renaming a TopSite would bind that as a new item and in such update
the entire list. This could potentially leading changes in the list and then
it's ViewPager parent's layout.

This patch switches the code to use the existing TopSitePayload and so do a
partial update of an on-screen TopSite instead of rebind it as a new item.

If a layout is requested while showing <=4 TopSites on the second page, by
having "offscreenPageLimit = 1" the biggest height of ViewPager pages is used
preventing an edgecase where the ViewPager would hide half of the items from
the first page.
3 years ago
..
DefaultTopSitesView.kt For #10342 - Part 4: Use the TopSitesFeature in the HomeFragment for displaying top sites 4 years ago
PagerIndicator.kt For #8312 - Show Top Sites in a ViewPager (#14116) 4 years ago
TopSiteItemViewHolder.kt For #18672 - Renaming a TopSite changes just the title 3 years ago
TopSitesAdapter.kt For #18672 - Renaming a TopSite changes just the title 3 years ago
TopSitesPagerAdapter.kt For #18672 - Renaming a TopSite changes just the title 3 years ago