From 4d5887bd8cd92854c4fad47016c3dbae5c1390f0 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Fri, 29 Jul 2016 16:34:17 -0700 Subject: [PATCH] Set shortcuts arrow pivot to side connected to container. Bug: 30508528 Change-Id: Iddc733d79b680010785d21b347d151bc23bffc23 --- src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java b/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java index 7aa2123219..67bb1e8a75 100644 --- a/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java +++ b/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java @@ -176,6 +176,8 @@ public class DeepShortcutsContainer extends LinearLayout implements View.OnLongC final int arrowVerticalOffset = resources.getDimensionPixelSize( R.dimen.deep_shortcuts_arrow_vertical_offset); mArrow = addArrowView(mArrowHorizontalOffset, arrowVerticalOffset, arrowWidth, arrowHeight); + mArrow.setPivotX(arrowWidth / 2); + mArrow.setPivotY(mIsAboveIcon ? 0 : arrowHeight); animateOpen();