diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-01-19 11:24:32 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-01-19 15:11:10 -0800 |
commit | 02424b20f3718e8b52b9e586b491eb3accfdafb6 (patch) | |
tree | 5de69e7943b0736249596d7f82c42290fb990368 /src/com/android/launcher3/popup/PopupContainerWithArrow.java | |
parent | 599752ed811d9e0a0e5764f3eff62c033bd91948 (diff) | |
download | android_packages_apps_Trebuchet-02424b20f3718e8b52b9e586b491eb3accfdafb6.tar.gz android_packages_apps_Trebuchet-02424b20f3718e8b52b9e586b491eb3accfdafb6.tar.bz2 android_packages_apps_Trebuchet-02424b20f3718e8b52b9e586b491eb3accfdafb6.zip |
Adding a horizontal popup when when workspace is longPressed
Change-Id: I5b3c48262c246bfe53e0010ca89c820f42503eef
Diffstat (limited to 'src/com/android/launcher3/popup/PopupContainerWithArrow.java')
-rw-r--r-- | src/com/android/launcher3/popup/PopupContainerWithArrow.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java index f90abb433..b3ef7bbd8 100644 --- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java +++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java @@ -62,6 +62,7 @@ import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.accessibility.LauncherAccessibilityDelegate; import com.android.launcher3.accessibility.ShortcutMenuAccessibilityDelegate; +import com.android.launcher3.anim.RevealOutlineAnimation; import com.android.launcher3.anim.RoundedRectRevealOutlineProvider; import com.android.launcher3.badge.BadgeInfo; import com.android.launcher3.dragndrop.DragController; @@ -810,10 +811,10 @@ public class PopupContainerWithArrow extends AbstractFloatingView implements Dra return; } mEndRect.setEmpty(); + if (getOutlineProvider() instanceof RevealOutlineAnimation) { + ((RevealOutlineAnimation) getOutlineProvider()).getOutline(mEndRect); + } if (mOpenCloseAnimator != null) { - Outline outline = new Outline(); - getOutlineProvider().getOutline(this, outline); - outline.getRect(mEndRect); mOpenCloseAnimator.cancel(); } mIsOpen = false; |