diff options
author | Tony Wickham <twickham@google.com> | 2016-07-30 05:13:19 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-07-30 05:13:19 +0000 |
commit | 706034e85b8f5397f0d532612cbf6f9dcd6a69b7 (patch) | |
tree | bc43307945eef585a91f5af6d39a62669d763290 /src | |
parent | 11177ac928bc610756135183110d99d7816495d9 (diff) | |
parent | 4d5887bd8cd92854c4fad47016c3dbae5c1390f0 (diff) | |
download | android_packages_apps_Trebuchet-706034e85b8f5397f0d532612cbf6f9dcd6a69b7.tar.gz android_packages_apps_Trebuchet-706034e85b8f5397f0d532612cbf6f9dcd6a69b7.tar.bz2 android_packages_apps_Trebuchet-706034e85b8f5397f0d532612cbf6f9dcd6a69b7.zip |
Set shortcuts arrow pivot to side connected to container.
am: 4d5887bd8c
Change-Id: I677309debc91c5a7af3dece0e076cc9182c1c7d4
Diffstat (limited to 'src')
-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 8bb0e081f..819a65332 100644 --- a/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java +++ b/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java @@ -157,6 +157,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(); |