Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 660679f9 authored by Anushree Ganjam's avatar Anushree Ganjam
Browse files

Introduce onAnimateToSearchStateCompleted() in SearchUiDelegate.

This will be called when transition animation to search is completed.

Bug: 285166099
Flag: NA
Test: Manual
Change-Id: I69e594cbf3564a866d258654fc23a00410e7deab
parent 3396b5c3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);
+5 −0
Original line number Diff line number Diff line
@@ -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.