OSDN Git Service

Merge "Use MaskableIconDrawable only in dogfood builds" into ub-launcher3-master
authorHyunyoung Song <hyunyoungs@google.com>
Fri, 13 Jan 2017 01:34:03 +0000 (01:34 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 13 Jan 2017 01:34:03 +0000 (01:34 +0000)
1  2 
src/com/android/launcher3/graphics/LauncherIcons.java

@@@ -157,8 -178,9 +161,9 @@@ public class LauncherIcons 
       * @param scale the scale to apply before drawing {@param icon} on the canvas
       */
      public static Bitmap createIconBitmap(Drawable icon, Context context, float scale) {
+         icon = castToMaskableIconDrawable(icon);
          synchronized (sCanvas) {
 -            final int iconBitmapSize = getIconBitmapSize();
 +            final int iconBitmapSize = LauncherAppState.getIDP(context).iconBitmapSize;
  
              int width = iconBitmapSize;
              int height = iconBitmapSize;