Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java +17 −4 Original line number Diff line number Diff line Loading @@ -908,6 +908,8 @@ public class BubbleExpandedView extends LinearLayout { * @param animate whether the pointer should animate to this position. */ public void setPointerPosition(float bubblePosition, boolean onLeft, boolean animate) { final boolean isRtl = mContext.getResources().getConfiguration().getLayoutDirection() == LAYOUT_DIRECTION_RTL; // Pointer gets drawn in the padding final boolean showVertically = mPositioner.showBubblesVertically(); final float paddingLeft = (showVertically && onLeft) Loading @@ -932,12 +934,23 @@ public class BubbleExpandedView extends LinearLayout { updatePointerView(); if (showVertically) { mPointerPos.y = bubbleCenter - (mPointerWidth / 2f); if (!isRtl) { mPointerPos.x = onLeft ? -mPointerHeight + mPointerOverlap : getWidth() - mPaddingRight - mPointerOverlap; } else { mPointerPos.x = onLeft ? -(getWidth() - mPaddingLeft - mPointerOverlap) : mPointerHeight - mPointerOverlap; } } else { mPointerPos.y = mPointerOverlap; if (!isRtl) { mPointerPos.x = bubbleCenter - (mPointerWidth / 2f); } else { mPointerPos.x = -(getWidth() - mPaddingLeft - bubbleCenter) + (mPointerWidth / 2f); } } if (animate) { mPointerView.animate().translationX(mPointerPos.x).translationY( Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java +17 −4 Original line number Diff line number Diff line Loading @@ -908,6 +908,8 @@ public class BubbleExpandedView extends LinearLayout { * @param animate whether the pointer should animate to this position. */ public void setPointerPosition(float bubblePosition, boolean onLeft, boolean animate) { final boolean isRtl = mContext.getResources().getConfiguration().getLayoutDirection() == LAYOUT_DIRECTION_RTL; // Pointer gets drawn in the padding final boolean showVertically = mPositioner.showBubblesVertically(); final float paddingLeft = (showVertically && onLeft) Loading @@ -932,12 +934,23 @@ public class BubbleExpandedView extends LinearLayout { updatePointerView(); if (showVertically) { mPointerPos.y = bubbleCenter - (mPointerWidth / 2f); if (!isRtl) { mPointerPos.x = onLeft ? -mPointerHeight + mPointerOverlap : getWidth() - mPaddingRight - mPointerOverlap; } else { mPointerPos.x = onLeft ? -(getWidth() - mPaddingLeft - mPointerOverlap) : mPointerHeight - mPointerOverlap; } } else { mPointerPos.y = mPointerOverlap; if (!isRtl) { mPointerPos.x = bubbleCenter - (mPointerWidth / 2f); } else { mPointerPos.x = -(getWidth() - mPaddingLeft - bubbleCenter) + (mPointerWidth / 2f); } } if (animate) { mPointerView.animate().translationX(mPointerPos.x).translationY( Loading