diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index 393baeda3c..9fb0e71463 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -610,7 +610,13 @@ public class ActivityAllAppsContainerView (int) (mSearchContainer.getAlpha() * 255)); } - /** @return true if the search bar is at the bottom of the container (as opposed to the top). */ + /** + * It is up to the search container view created by {@link #inflateSearchBox()} to use the + * floating search bar flag to move itself to the bottom of this container. This method checks + * if that had been done; otherwise the flag will be ignored. + * + * @return true if the search bar is at the bottom of the container (as opposed to the top). + **/ private boolean isSearchBarOnBottom() { return FeatureFlags.ENABLE_FLOATING_SEARCH_BAR.get() && ((RelativeLayout.LayoutParams) mSearchContainer.getLayoutParams()).getRule(