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

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

No files matched your search

@@ -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();