Merge "Introduce onAnimateToSearchStateCompleted() in SearchUiDelegate." into udc-qpr-dev

This commit is contained in:
Anushree Ganjam
2023-07-19 18:02:41 +00:00
committed by Android (Google) Code Review
2 changed files with 9 additions and 1 deletions
@@ -391,7 +391,10 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
rebindAdapters(false);
mRebindAdaptersAfterSearchAnimation = false;
}
if (!goingToSearch) {
if (goingToSearch) {
mSearchUiDelegate.onAnimateToSearchStateCompleted();
} else {
setSearchResults(null);
if (mViewPager != null) {
mViewPager.setCurrentPage(previousPage);
@@ -49,6 +49,11 @@ public class AllAppsSearchUiDelegate {
// Do nothing.
}
/** Invoked when transition animations to go to search is completed . */
public void onAnimateToSearchStateCompleted() {
// Do nothing
}
/** Invoked when the search bar has been added to All Apps. */
public void onInitializeSearchBar() {
// Do nothing.