[NTP Client] Implement offline badge refresh via partial bind
The RecyclerView library has a mechanism to perform partial refresh of views from the adapter via partial binds[1]. Added support for it in the NewTabPageAdapter and related classes, and rewrote the refresh of the offline badge using that. This patch also fixes an issue where the badge was not removed when an offline page was deleted Preview: https://goo.gl/photos/MKD2WXTiNqbQ17xD8 BUG=616090 Review-Url: https://codereview.chromium.org/2622793003 Cr-Commit-Position: refs/heads/master@{#443236}
Showing
Please register or sign in to comment