Loading quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java +10 −6 Original line number Diff line number Diff line Loading @@ -400,12 +400,6 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT } }; mSeparateWindowParent.recreateControllers(); if (com.android.wm.shell.Flags.enableBubbleBarInPersistentTaskBar() && mControllers.bubbleControllers.isPresent()) { BubbleBarLocation bubblesLocation = mControllers.bubbleControllers.get() .bubbleBarViewController.getBubbleBarLocation(); onBubbleBarLocationUpdated(bubblesLocation); } } private void initButtons(ViewGroup navContainer, ViewGroup endContainer, Loading Loading @@ -1223,6 +1217,16 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT return (int) navBarTargetStartX - mNavButtonContainer.getLeft(); } /** Adjusts the navigation buttons layout position according to the bubble bar location. */ public void onTaskbarLayoutChange() { if (com.android.wm.shell.Flags.enableBubbleBarInPersistentTaskBar() && mControllers.bubbleControllers.isPresent()) { BubbleBarLocation bubblesLocation = mControllers.bubbleControllers.get() .bubbleBarViewController.getBubbleBarLocation(); onBubbleBarLocationUpdated(bubblesLocation); } } private class RotationButtonListener implements RotationButton.RotationButtonUpdatesCallback { @Override public void onVisibilityChanged(boolean isVisible) { Loading quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +6 −4 Original line number Diff line number Diff line Loading @@ -140,10 +140,6 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar private final AnimatedFloat mTaskbarIconTranslationYForPinning = new AnimatedFloat( this::updateTranslationY); private final View.OnLayoutChangeListener mTaskbarViewLayoutChangeListener = (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> updateTaskbarIconTranslationXForPinning(); private AnimatedFloat mTaskbarNavButtonTranslationY; private AnimatedFloat mTaskbarNavButtonTranslationYForInAppDisplay; Loading @@ -158,6 +154,12 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar // Initialized in init. private TaskbarControllers mControllers; private final View.OnLayoutChangeListener mTaskbarViewLayoutChangeListener = (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> { updateTaskbarIconTranslationXForPinning(); mControllers.navbarButtonsViewController.onTaskbarLayoutChange(); }; // Animation to align icons with Launcher, created lazily. This allows the controller to be // active only during the animation and does not need to worry about layout changes. private AnimatorPlaybackController mIconAlignControllerLazy = null; Loading Loading
quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java +10 −6 Original line number Diff line number Diff line Loading @@ -400,12 +400,6 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT } }; mSeparateWindowParent.recreateControllers(); if (com.android.wm.shell.Flags.enableBubbleBarInPersistentTaskBar() && mControllers.bubbleControllers.isPresent()) { BubbleBarLocation bubblesLocation = mControllers.bubbleControllers.get() .bubbleBarViewController.getBubbleBarLocation(); onBubbleBarLocationUpdated(bubblesLocation); } } private void initButtons(ViewGroup navContainer, ViewGroup endContainer, Loading Loading @@ -1223,6 +1217,16 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT return (int) navBarTargetStartX - mNavButtonContainer.getLeft(); } /** Adjusts the navigation buttons layout position according to the bubble bar location. */ public void onTaskbarLayoutChange() { if (com.android.wm.shell.Flags.enableBubbleBarInPersistentTaskBar() && mControllers.bubbleControllers.isPresent()) { BubbleBarLocation bubblesLocation = mControllers.bubbleControllers.get() .bubbleBarViewController.getBubbleBarLocation(); onBubbleBarLocationUpdated(bubblesLocation); } } private class RotationButtonListener implements RotationButton.RotationButtonUpdatesCallback { @Override public void onVisibilityChanged(boolean isVisible) { Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +6 −4 Original line number Diff line number Diff line Loading @@ -140,10 +140,6 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar private final AnimatedFloat mTaskbarIconTranslationYForPinning = new AnimatedFloat( this::updateTranslationY); private final View.OnLayoutChangeListener mTaskbarViewLayoutChangeListener = (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> updateTaskbarIconTranslationXForPinning(); private AnimatedFloat mTaskbarNavButtonTranslationY; private AnimatedFloat mTaskbarNavButtonTranslationYForInAppDisplay; Loading @@ -158,6 +154,12 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar // Initialized in init. private TaskbarControllers mControllers; private final View.OnLayoutChangeListener mTaskbarViewLayoutChangeListener = (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> { updateTaskbarIconTranslationXForPinning(); mControllers.navbarButtonsViewController.onTaskbarLayoutChange(); }; // Animation to align icons with Launcher, created lazily. This allows the controller to be // active only during the animation and does not need to worry about layout changes. private AnimatorPlaybackController mIconAlignControllerLazy = null; Loading