Merge "Comment update for isSearchBarOnBottom"
This commit is contained in:
committed by
Android (Google) Code Review
commit
bc678edf09
@@ -610,7 +610,13 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
(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(
|
||||
|
||||
Reference in New Issue
Block a user