Merge "Introduce onAnimateToSearchStateCompleted() in SearchUiDelegate." into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
55405157e2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user