Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc9a1266 authored by Tony Wickham's avatar Tony Wickham Committed by android-build-merger
Browse files

Merge "Set FastBitmapDrawable scale=1 before drawing it in DragView" into ub-launcher3-qt-r1-dev

am: b2e6a77b

Change-Id: I844464daa971af505c34c4566e2c4c8c35143dc8
parents 443f0505 b2e6a77b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.os.Handler;
import android.view.View;

import com.android.launcher3.BubbleTextView;
import com.android.launcher3.FastBitmapDrawable;
import com.android.launcher3.Launcher;
import com.android.launcher3.R;
import com.android.launcher3.config.FeatureFlags;
@@ -87,6 +88,9 @@ public class DragPreviewProvider {
            Rect bounds = getDrawableBounds(d);
            destCanvas.translate(blurSizeOutline / 2 - bounds.left,
                    blurSizeOutline / 2 - bounds.top);
            if (d instanceof FastBitmapDrawable) {
                ((FastBitmapDrawable) d).setScale(1);
            }
            d.draw(destCanvas);
        } else {
            final Rect clipRect = mTempRect;