mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user