Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +19 −2 Original line number Diff line number Diff line Loading @@ -1386,6 +1386,11 @@ public class BubbleStackView extends FrameLayout { if (DEBUG_BUBBLE_STACK_VIEW) { Log.d(TAG, "onBubbleDragStart: bubble=" + bubble); } if (bubble.equals(mBubbleOverflow.getIconView())) { return; } mExpandedAnimationController.prepareForBubbleDrag(bubble, mMagneticTarget); // We're dragging an individual bubble, so set the magnetized object to the magnetized Loading @@ -1398,7 +1403,7 @@ public class BubbleStackView extends FrameLayout { /** Called with the coordinates to which an individual bubble has been dragged. */ public void onBubbleDragged(View bubble, float x, float y) { if (!mIsExpanded || mIsExpansionAnimating) { if (!mIsExpanded || mIsExpansionAnimating || bubble.equals(mBubbleOverflow.getIconView())) { return; } Loading @@ -1413,7 +1418,7 @@ public class BubbleStackView extends FrameLayout { Log.d(TAG, "onBubbleDragFinish: bubble=" + bubble); } if (!mIsExpanded || mIsExpansionAnimating) { if (!mIsExpanded || mIsExpansionAnimating || bubble.equals(mBubbleOverflow.getIconView())) { return; } Loading @@ -1421,6 +1426,18 @@ public class BubbleStackView extends FrameLayout { hideDismissTarget(); } /** Expands the clicked bubble. */ public void expandBubble(Bubble bubble) { if (bubble.equals(mBubbleData.getSelectedBubble())) { // If the bubble we're supposed to expand is the selected bubble, that means the // overflow bubble is currently expanded. Don't tell BubbleData to set this bubble as // selected, since it already is. Just call the stack's setSelectedBubble to expand it. setSelectedBubble(bubble); } else { mBubbleData.setSelectedBubble(bubble); } } void onDragStart() { if (DEBUG_BUBBLE_STACK_VIEW) { Log.d(TAG, "onDragStart()"); Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleTouchHandler.java +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ class BubbleTouchHandler implements View.OnTouchListener { if (key == BubbleOverflow.KEY) { mStack.showOverflow(); } else { mBubbleData.setSelectedBubble(mBubbleData.getBubbleWithKey(key)); mStack.expandBubble(mBubbleData.getBubbleWithKey(key)); } } resetForNextGesture(); Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +19 −2 Original line number Diff line number Diff line Loading @@ -1386,6 +1386,11 @@ public class BubbleStackView extends FrameLayout { if (DEBUG_BUBBLE_STACK_VIEW) { Log.d(TAG, "onBubbleDragStart: bubble=" + bubble); } if (bubble.equals(mBubbleOverflow.getIconView())) { return; } mExpandedAnimationController.prepareForBubbleDrag(bubble, mMagneticTarget); // We're dragging an individual bubble, so set the magnetized object to the magnetized Loading @@ -1398,7 +1403,7 @@ public class BubbleStackView extends FrameLayout { /** Called with the coordinates to which an individual bubble has been dragged. */ public void onBubbleDragged(View bubble, float x, float y) { if (!mIsExpanded || mIsExpansionAnimating) { if (!mIsExpanded || mIsExpansionAnimating || bubble.equals(mBubbleOverflow.getIconView())) { return; } Loading @@ -1413,7 +1418,7 @@ public class BubbleStackView extends FrameLayout { Log.d(TAG, "onBubbleDragFinish: bubble=" + bubble); } if (!mIsExpanded || mIsExpansionAnimating) { if (!mIsExpanded || mIsExpansionAnimating || bubble.equals(mBubbleOverflow.getIconView())) { return; } Loading @@ -1421,6 +1426,18 @@ public class BubbleStackView extends FrameLayout { hideDismissTarget(); } /** Expands the clicked bubble. */ public void expandBubble(Bubble bubble) { if (bubble.equals(mBubbleData.getSelectedBubble())) { // If the bubble we're supposed to expand is the selected bubble, that means the // overflow bubble is currently expanded. Don't tell BubbleData to set this bubble as // selected, since it already is. Just call the stack's setSelectedBubble to expand it. setSelectedBubble(bubble); } else { mBubbleData.setSelectedBubble(bubble); } } void onDragStart() { if (DEBUG_BUBBLE_STACK_VIEW) { Log.d(TAG, "onDragStart()"); Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleTouchHandler.java +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ class BubbleTouchHandler implements View.OnTouchListener { if (key == BubbleOverflow.KEY) { mStack.showOverflow(); } else { mBubbleData.setSelectedBubble(mBubbleData.getBubbleWithKey(key)); mStack.expandBubble(mBubbleData.getBubbleWithKey(key)); } } resetForNextGesture(); Loading