Update placement of the nav bar in persistent taskbar for 3 button nav
Implemented nav bar placement update to be located opposite to the bubble bar. When bubble bar is moved to the other side of the bar, 3 button nav will swap sides (without animation). If taskbar has to be repositioned it does that with the animation. Test: TaskbarViewControllerTest Bug: 346381754 Flag: com.android.wm.shell.enable_bubble_bar Change-Id: Id031706183c60cbd9c67537b01530acb43bae614
This commit is contained in:
@@ -95,11 +95,11 @@ public class BubbleBarView extends FrameLayout {
|
||||
|
||||
private static final long FADE_OUT_ANIM_ALPHA_DURATION_MS = 50L;
|
||||
private static final long FADE_OUT_ANIM_ALPHA_DELAY_MS = 50L;
|
||||
private static final long FADE_OUT_ANIM_POSITION_DURATION_MS = 100L;
|
||||
public static final long FADE_OUT_ANIM_POSITION_DURATION_MS = 100L;
|
||||
// During fade out animation we shift the bubble bar 1/80th of the screen width
|
||||
private static final float FADE_OUT_ANIM_POSITION_SHIFT = 1 / 80f;
|
||||
|
||||
private static final long FADE_IN_ANIM_ALPHA_DURATION_MS = 100L;
|
||||
public static final long FADE_IN_ANIM_ALPHA_DURATION_MS = 100L;
|
||||
// Use STIFFNESS_MEDIUMLOW which is not defined in the API constants
|
||||
private static final float FADE_IN_ANIM_POSITION_SPRING_STIFFNESS = 400f;
|
||||
// During fade in animation we shift the bubble bar 1/60th of the screen width
|
||||
|
||||
Reference in New Issue
Block a user