mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Decouple taskbar background from overveiw scrim if taskbar is in overview
- Removed all forceHideBackground calls if taskbar would be in overview - Make overview scrim transparent regardless of stash state if taskbar would be in overview Fix: 234139692 Test: Go to overview from app with ENABLE_TASKBAR_IN_OVERVIEW on/off and taskbar stashed/unstashed Change-Id: I29e811cb93894e6c9e7a75c0ea493719f15eeccb
This commit is contained in:
@@ -98,6 +98,7 @@ import com.android.launcher3.DeviceProfile.OnDeviceProfileChangeListener;
|
||||
import com.android.launcher3.LauncherAnimationRunner.RemoteAnimationFactory;
|
||||
import com.android.launcher3.anim.AnimationSuccessListener;
|
||||
import com.android.launcher3.anim.AnimatorListeners;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.dragndrop.DragLayer;
|
||||
import com.android.launcher3.icons.FastBitmapDrawable;
|
||||
import com.android.launcher3.shortcuts.DeepShortcutView;
|
||||
@@ -551,7 +552,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
|
||||
final boolean scrimEnabled = ENABLE_SCRIM_FOR_APP_LAUNCH.get();
|
||||
if (scrimEnabled) {
|
||||
boolean useTaskbarColor = mDeviceProfile.isTaskbarPresentInApps;
|
||||
boolean useTaskbarColor = mDeviceProfile.isTaskbarPresentInApps
|
||||
&& !FeatureFlags.ENABLE_TASKBAR_IN_OVERVIEW.get();
|
||||
int scrimColor = useTaskbarColor
|
||||
? mLauncher.getResources().getColor(R.color.taskbar_background)
|
||||
: Themes.getAttrColor(mLauncher, R.attr.overviewScrimColor);
|
||||
|
||||
Reference in New Issue
Block a user