diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index eb4ecaf161..ace4d01640 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -391,7 +391,10 @@ public class ActivityAllAppsContainerView rebindAdapters(false); mRebindAdaptersAfterSearchAnimation = false; } - if (!goingToSearch) { + + if (goingToSearch) { + mSearchUiDelegate.onAnimateToSearchStateCompleted(); + } else { setSearchResults(null); if (mViewPager != null) { mViewPager.setCurrentPage(previousPage); diff --git a/src/com/android/launcher3/allapps/search/AllAppsSearchUiDelegate.java b/src/com/android/launcher3/allapps/search/AllAppsSearchUiDelegate.java index 49cecca19f..2347bfd5a7 100644 --- a/src/com/android/launcher3/allapps/search/AllAppsSearchUiDelegate.java +++ b/src/com/android/launcher3/allapps/search/AllAppsSearchUiDelegate.java @@ -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.