Merge "Swipe interaction changes on home screen" into ub-launcher3-master
diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java
index c20b577..7de1600 100644
--- a/quickstep/src/com/android/quickstep/views/TaskView.java
+++ b/quickstep/src/com/android/quickstep/views/TaskView.java
@@ -29,7 +29,6 @@
 import android.widget.ImageView;
 
 import com.android.launcher3.BaseDraggingActivity;
-import com.android.launcher3.Launcher;
 import com.android.launcher3.R;
 import com.android.quickstep.views.RecentsView.PageCallbacks;
 import com.android.quickstep.views.RecentsView.ScrollState;
@@ -55,6 +54,11 @@
      */
     private static final float MAX_PAGE_SCRIM_ALPHA = 0.4f;
 
+    /**
+     * How much to scale down pages near the edge of the screen.
+     */
+    private static final float EDGE_SCALE_DOWN_FACTOR = 0.03f;
+
     private static final long SCALE_ICON_DURATION = 120;
 
     private Task mTask;
@@ -166,6 +170,10 @@
                 CURVE_INTERPOLATOR.getInterpolation(scrollState.linearInterpolation);
 
         mSnapshotView.setDimAlpha(1 - curveInterpolation * MAX_PAGE_SCRIM_ALPHA);
+
+        float scale = 1 - curveInterpolation * EDGE_SCALE_DOWN_FACTOR;
+        setScaleX(scale);
+        setScaleY(scale);
     }
 
     private static final class TaskOutlineProvider extends ViewOutlineProvider {