diff options
author | Brian Isganitis <brianji@google.com> | 2023-04-04 20:43:11 -0400 |
---|---|---|
committer | Brian Isganitis <brianji@google.com> | 2023-04-21 16:16:55 +0000 |
commit | bd114c2241df95c7f6df8e877e83a8a34280833f (patch) | |
tree | 9a9fd16d063b2a66d87547912e0dba806fa8747e /src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java | |
parent | 5c18fa35b2e6467e16996e08bf86c7d8bb6fda45 (diff) | |
download | Launcher3-bd114c2241df95c7f6df8e877e83a8a34280833f.tar.gz |
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
Diffstat (limited to 'src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java')
-rw-r--r-- | src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index b485780dee..689ee90c65 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -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() { |