Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +3 −1 Original line number Diff line number Diff line Loading @@ -1596,9 +1596,11 @@ public class BubbleController implements ConfigurationChangeListener, if (!BubbleAnythingFlagHelper.enableCreateAnyBubble()) return; BubbleBarLocation updateLocation = isShowingAsBubbleBar() ? bubbleBarLocation : null; if (updateLocation != null) { // does not update the bubble bar location of the bubble bar, just expanded view updateExpandedViewForBubbleBarLocation(updateLocation, source); } if (b.isInflated()) { // mBubbleData should be updated with the new location to update the bubble bar location mBubbleData.setSelectedBubbleAndExpandStack(b, updateLocation); } else { b.enable(Notification.BubbleMetadata.FLAG_AUTO_EXPAND_BUBBLE); Loading @@ -1607,7 +1609,7 @@ public class BubbleController implements ConfigurationChangeListener, ensureBubbleViewsAndWindowCreated(); mBubbleTransitions.startLaunchIntoOrConvertToBubble(b, mExpandedViewManager, mBubbleTaskViewFactory, mBubblePositioner, mStackView, mLayerView, mBubbleIconFactory, mInflateSynchronously); mBubbleIconFactory, mInflateSynchronously, bubbleBarLocation); } else { inflateAndAdd(b, /* suppressFlyout= */ true, /* showInShade= */ false, updateLocation); Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleTransitions.java +8 −4 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ import com.android.wm.shell.ShellTaskOrganizer; import com.android.wm.shell.bubbles.bar.BubbleBarExpandedView; import com.android.wm.shell.bubbles.bar.BubbleBarLayerView; import com.android.wm.shell.common.HomeIntentProvider; import com.android.wm.shell.shared.bubbles.BubbleBarLocation; import com.android.wm.shell.taskview.TaskView; import com.android.wm.shell.taskview.TaskViewRepository; import com.android.wm.shell.taskview.TaskViewTaskController; Loading Loading @@ -183,9 +184,9 @@ public class BubbleTransitions { BubbleExpandedViewManager expandedViewManager, BubbleTaskViewFactory factory, BubblePositioner positioner, BubbleStackView stackView, BubbleBarLayerView layerView, BubbleIconFactory iconFactory, boolean inflateSync) { boolean inflateSync, @Nullable BubbleBarLocation bubbleBarLocation) { new LaunchOrConvertToBubble(bubble, mContext, expandedViewManager, factory, positioner, stackView, layerView, iconFactory, inflateSync); stackView, layerView, iconFactory, inflateSync, bubbleBarLocation); } /** Loading Loading @@ -665,17 +666,20 @@ public class BubbleTransitions { private SurfaceControl.Transaction mFinishT; private SurfaceControl mTaskLeash; @Nullable private BubbleBarLocation mBubbleBarLocation; LaunchOrConvertToBubble(Bubble bubble, Context context, BubbleExpandedViewManager expandedViewManager, BubbleTaskViewFactory factory, BubblePositioner positioner, BubbleStackView stackView, BubbleBarLayerView layerView, BubbleIconFactory iconFactory, boolean inflateSync) { boolean inflateSync, @Nullable BubbleBarLocation bubbleBarLocation) { mBubble = bubble; mTransitionProgress = new TransitionProgress(bubble); mLayerView = layerView; mBubble.setInflateSynchronously(inflateSync); mBubble.setPreparingTransition(this); mBubbleBarLocation = bubbleBarLocation; mBubble.inflate( this::onInflated, context, Loading Loading @@ -838,7 +842,7 @@ public class BubbleTransitions { // Now update state (and talk to launcher) in parallel with snapshot stuff mBubbleData.notificationEntryUpdated(mBubble, /* suppressFlyout= */ true, /* showInShade= */ false); /* showInShade= */ false, mBubbleBarLocation); if (mPlayConvertTaskAnimation) { final int left = mStartBounds.left - info.getRoot(0).getOffset().x; Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +3 −1 Original line number Diff line number Diff line Loading @@ -1596,9 +1596,11 @@ public class BubbleController implements ConfigurationChangeListener, if (!BubbleAnythingFlagHelper.enableCreateAnyBubble()) return; BubbleBarLocation updateLocation = isShowingAsBubbleBar() ? bubbleBarLocation : null; if (updateLocation != null) { // does not update the bubble bar location of the bubble bar, just expanded view updateExpandedViewForBubbleBarLocation(updateLocation, source); } if (b.isInflated()) { // mBubbleData should be updated with the new location to update the bubble bar location mBubbleData.setSelectedBubbleAndExpandStack(b, updateLocation); } else { b.enable(Notification.BubbleMetadata.FLAG_AUTO_EXPAND_BUBBLE); Loading @@ -1607,7 +1609,7 @@ public class BubbleController implements ConfigurationChangeListener, ensureBubbleViewsAndWindowCreated(); mBubbleTransitions.startLaunchIntoOrConvertToBubble(b, mExpandedViewManager, mBubbleTaskViewFactory, mBubblePositioner, mStackView, mLayerView, mBubbleIconFactory, mInflateSynchronously); mBubbleIconFactory, mInflateSynchronously, bubbleBarLocation); } else { inflateAndAdd(b, /* suppressFlyout= */ true, /* showInShade= */ false, updateLocation); Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleTransitions.java +8 −4 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ import com.android.wm.shell.ShellTaskOrganizer; import com.android.wm.shell.bubbles.bar.BubbleBarExpandedView; import com.android.wm.shell.bubbles.bar.BubbleBarLayerView; import com.android.wm.shell.common.HomeIntentProvider; import com.android.wm.shell.shared.bubbles.BubbleBarLocation; import com.android.wm.shell.taskview.TaskView; import com.android.wm.shell.taskview.TaskViewRepository; import com.android.wm.shell.taskview.TaskViewTaskController; Loading Loading @@ -183,9 +184,9 @@ public class BubbleTransitions { BubbleExpandedViewManager expandedViewManager, BubbleTaskViewFactory factory, BubblePositioner positioner, BubbleStackView stackView, BubbleBarLayerView layerView, BubbleIconFactory iconFactory, boolean inflateSync) { boolean inflateSync, @Nullable BubbleBarLocation bubbleBarLocation) { new LaunchOrConvertToBubble(bubble, mContext, expandedViewManager, factory, positioner, stackView, layerView, iconFactory, inflateSync); stackView, layerView, iconFactory, inflateSync, bubbleBarLocation); } /** Loading Loading @@ -665,17 +666,20 @@ public class BubbleTransitions { private SurfaceControl.Transaction mFinishT; private SurfaceControl mTaskLeash; @Nullable private BubbleBarLocation mBubbleBarLocation; LaunchOrConvertToBubble(Bubble bubble, Context context, BubbleExpandedViewManager expandedViewManager, BubbleTaskViewFactory factory, BubblePositioner positioner, BubbleStackView stackView, BubbleBarLayerView layerView, BubbleIconFactory iconFactory, boolean inflateSync) { boolean inflateSync, @Nullable BubbleBarLocation bubbleBarLocation) { mBubble = bubble; mTransitionProgress = new TransitionProgress(bubble); mLayerView = layerView; mBubble.setInflateSynchronously(inflateSync); mBubble.setPreparingTransition(this); mBubbleBarLocation = bubbleBarLocation; mBubble.inflate( this::onInflated, context, Loading Loading @@ -838,7 +842,7 @@ public class BubbleTransitions { // Now update state (and talk to launcher) in parallel with snapshot stuff mBubbleData.notificationEntryUpdated(mBubble, /* suppressFlyout= */ true, /* showInShade= */ false); /* showInShade= */ false, mBubbleBarLocation); if (mPlayConvertTaskAnimation) { final int left = mStartBounds.left - info.getRoot(0).getOffset().x; Loading