Merge "Adds header protection on tablet all apps panel." into tm-qpr-dev

This commit is contained in:
Andy Wickham
2022-12-12 19:08:37 +00:00
committed by Android (Google) Code Review
4 changed files with 90 additions and 20 deletions

View File

@@ -281,6 +281,10 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
@Override
public int getHeaderBottom() {
if (FeatureFlags.ENABLE_FLOATING_SEARCH_BAR.get()) {
if (mActivityContext.getDeviceProfile().isTablet) {
return super.getHeaderBottom() + mHeader.getClipTop()
+ mBottomSheetBackground.getTop();
}
return super.getHeaderBottom() + mHeader.getClipTop();
}
return super.getHeaderBottom() + mSearchContainer.getBottom();