Add header protection for Taskbar All Apps search bar.

Works similar to ActivityAllAppsContainerView<->ScrimView
implementation, except utilizes AbstractSlideInView's builtin scrim.

Test: Manual
Flag: ENABLE_ALL_APPS_SEARCH_IN_TASKBAR=false
Bug: 216683257
Change-Id: Ide41ac47ecffc232fffac34c6bfdda67c1da549d
This commit is contained in:
Brian Isganitis
2023-04-04 20:43:11 -04:00
parent 5c18fa35b2
commit bd114c2241
4 changed files with 36 additions and 7 deletions

View File

@@ -842,8 +842,8 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
protected void updateBackground(DeviceProfile deviceProfile) {
mBottomSheetBackground.setVisibility(deviceProfile.isTablet ? View.VISIBLE : View.GONE);
// Note: For tablets, the opaque background and header protection are added in drawOnScrim.
// For the taskbar entrypoint, the scrim is drawn differently, so a static background is
// added in TaskbarAllAppsContainerView and header protection is not yet supported.
// For the taskbar entrypoint, the scrim is drawn by its abstract slide in view container,
// so its header protection is derived from this scrim instead.
}
private void onAppsUpdated() {