summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/dragndrop
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-07-14 00:41:41 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-07-14 00:41:42 +0000
commitfcb81b978db08ab4c4a1f69eea6a76e57a50ff6f (patch)
treed47ee4fcc2d358fa20b81254e0dc580287ae5eed /src/com/android/launcher3/dragndrop
parent7b8f1eaba147ac42a347f3787d0e90b24be015db (diff)
parent6178f13e2d1f0c1a89cea74538b51993ef3439e3 (diff)
downloadandroid_packages_apps_Trebuchet-fcb81b978db08ab4c4a1f69eea6a76e57a50ff6f.tar.gz
android_packages_apps_Trebuchet-fcb81b978db08ab4c4a1f69eea6a76e57a50ff6f.tar.bz2
android_packages_apps_Trebuchet-fcb81b978db08ab4c4a1f69eea6a76e57a50ff6f.zip
Merge "Moving the QSB out of the cell layout to the Drag layer" into ub-launcher3-calgary
Diffstat (limited to 'src/com/android/launcher3/dragndrop')
-rw-r--r--src/com/android/launcher3/dragndrop/DragLayer.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/com/android/launcher3/dragndrop/DragLayer.java b/src/com/android/launcher3/dragndrop/DragLayer.java
index 82b5dd314..5f8faab3d 100644
--- a/src/com/android/launcher3/dragndrop/DragLayer.java
+++ b/src/com/android/launcher3/dragndrop/DragLayer.java
@@ -747,13 +747,14 @@ public class DragLayer extends InsettableFrameLayout {
* location doesn't account for scaling, and so should be centered about the desired
* final location (including scaling).
* @param finalAlpha The final alpha of the view, in case we want it to fade as it animates.
- * @param finalScale The final scale of the view. The view is scaled about its center.
+ * @param finalScaleX The final scale of the view. The view is scaled about its center.
+ * @param finalScaleY The final scale of the view. The view is scaled about its center.
* @param duration The duration of the animation.
* @param motionInterpolator The interpolator to use for the location of the view.
* @param alphaInterpolator The interpolator to use for the alpha of the view.
* @param onCompleteRunnable Optional runnable to run on animation completion.
- * @param fadeOut Whether or not to fade out the view once the animation completes. If true,
- * the runnable will execute after the view is faded out.
+ * @param animationEndStyle Whether or not to fade out the view once the animation completes.
+ * {@link #ANIMATION_END_DISAPPEAR} or {@link #ANIMATION_END_REMAIN_VISIBLE}.
* @param anchorView If not null, this represents the view which the animated view stays
* anchored to in case scrolling is currently taking place. Note: currently this is
* only used for the X dimension for the case of the workspace.
@@ -988,12 +989,7 @@ public class DragLayer extends InsettableFrameLayout {
canvas.save();
if (currCellLayout != null && currCellLayout != mLauncher.getHotseat().getLayout()) {
// Cut a hole in the darkening scrim on the page that should be highlighted, if any.
- float scale = getDescendantRectRelativeToSelf(currCellLayout, mHighlightRect);
- Rect backBounds = currCellLayout.getBackgroundBounds();
- mHighlightRect.left += (int) (backBounds.left * scale);
- mHighlightRect.top += (int) (backBounds.top * scale);
- mHighlightRect.right = (int) (mHighlightRect.left + backBounds.width() * scale);
- mHighlightRect.bottom = (int) (mHighlightRect.top + backBounds.height() * scale);
+ getDescendantRectRelativeToSelf(currCellLayout, mHighlightRect);
canvas.clipRect(mHighlightRect, Region.Op.DIFFERENCE);
}
canvas.drawColor((alpha << 24) | SCRIM_COLOR);