Merge "Introduce onAnimateToSearchStateCompleted() in SearchUiDelegate." into udc-qpr-dev am: 55405157e2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24069799 Change-Id: Ifb1762ddafe9ae37d4185612ce70d1d788447b1e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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