Fix taskbar background alpha
Test: Manual Bug: 345018985 Flag: com.android.launcher3.enable_scaling_reveal_home_animation Change-Id: Ic675285724bcf64b7bd03f918703defb4dc12a47
This commit is contained in:
1 parent
b47bed0fe6
commit
eba5d919ef
2 files changed
+9
-6
No files matched your search
@@ -338,7 +338,16 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
||||
// For now, assume we're in an app, since LauncherTaskbarUIController won't be able to tell
|
||||
// us that we're paused until a bit later. This avoids flickering upon recreating taskbar.
|
||||
updateStateForFlag(FLAG_IN_APP, true);
|
||||
|
||||
applyState(/* duration = */ 0);
|
||||
|
||||
// Hide the background while stashed so it doesn't show on fast swipes home
|
||||
boolean shouldHideTaskbarBackground = enableScalingRevealHomeAnimation()
|
||||
&& DisplayController.isTransientTaskbar(mActivity)
|
||||
&& isStashed();
|
||||
|
||||
mTaskbarBackgroundAlphaForStash.setValue(shouldHideTaskbarBackground ? 0 : 1);
|
||||
|
||||
if (mTaskbarSharedState.getTaskbarWasPinned()
|
||||
|| !mTaskbarSharedState.taskbarWasStashedAuto) {
|
||||
tryStartTaskbarTimeout();
|
||||
|
||||
Reference in new issue
Block a user