diff options
author | Tony Wickham <twickham@google.com> | 2016-07-29 16:34:17 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2016-07-29 16:34:17 -0700 |
commit | 4d5887bd8cd92854c4fad47016c3dbae5c1390f0 (patch) | |
tree | 948aca5215e5b87b2ec3339b3d440eaa73d8f45d | |
parent | 72dc60c5760166699effee7be17528de7f29fa67 (diff) | |
download | android_packages_apps_Trebuchet-4d5887bd8cd92854c4fad47016c3dbae5c1390f0.tar.gz android_packages_apps_Trebuchet-4d5887bd8cd92854c4fad47016c3dbae5c1390f0.tar.bz2 android_packages_apps_Trebuchet-4d5887bd8cd92854c4fad47016c3dbae5c1390f0.zip |
Set shortcuts arrow pivot to side connected to container.
Bug: 30508528
Change-Id: Iddc733d79b680010785d21b347d151bc23bffc23
-rw-r--r-- | src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java b/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java index 7aa212321..67bb1e8a7 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(); |