Add result_type kPlayStoreReinstallApp and use to improve Reinstall UX.
Adds a result_type, kPlayeStoreReinstallApp to both the ash/app_list code, and use this as the result_type of ArcAppReinstallAppResult. In SearchModel, add a method to filter with a lambda not just a list of app IDs not to show. In SearchResultTileItemListView, pull the list of SearchResult and use the new method in SearchModel to create a list of apps with the reinstall app as the last items. In Chip View, use the same filter to ensure that reinstall recommendations are not shown. In SearchResultTileItemListView and SearchResultTileItemView track the value of whether or not zero state is enabled, and make similar modifications to the UI as the play store changes do. Modify SearchResultTileItemListViewTest to test the new behavior, and parameterize that test by both flags. Bug: 911427 Change-Id: If9d8509835300024d656c89cf127980ae831d4ab Reviewed-on: https://chromium-review.googlesource.com/c/1449963 Commit-Queue: Rob Schonberger <robsc@chromium.org> Reviewed-by:Jenny Zhang <jennyz@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#629841}
Showing
Please register or sign in to comment