OSDN Git Service

Merge "Removing all compatibility code below Lollipop" into ub-launcher3-master
authorSunny Goyal <sunnygoyal@google.com>
Thu, 29 Dec 2016 21:29:31 +0000 (21:29 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 29 Dec 2016 21:29:31 +0000 (21:29 +0000)
1  2 
src/com/android/launcher3/Launcher.java
src/com/android/launcher3/Workspace.java
src/com/android/launcher3/dragndrop/DragView.java

@@@ -145,11 -140,7 +141,9 @@@ public class DragView extends View 
          measure(ms, ms);
          mPaint = new Paint(Paint.FILTER_BITMAP_FLAG);
  
-         if (Utilities.ATLEAST_LOLLIPOP) {
-             setElevation(getResources().getDimension(R.dimen.drag_elevation));
-         }
 +        mBlurSizeOutline = getResources().getDimensionPixelSize(R.dimen.blur_size_medium_outline);
 +
+         setElevation(getResources().getDimension(R.dimen.drag_elevation));
      }
  
      /** Sets the scale of the view over the normal workspace icon size. */