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

Commit 59d504e8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Using proper checks for hardware bitmap usage" into ub-launcher3-master

parents 3b7402c2 719fcb15
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import android.os.Build;
import android.util.AttributeSet;

import com.android.launcher3.R;
import com.android.launcher3.Utilities;

import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@@ -146,7 +145,7 @@ public class ShadowDrawable extends Drawable {
            d.draw(canvas);
        }

        if (Utilities.ATLEAST_OREO) {
        if (BitmapRenderer.USE_HARDWARE_BITMAP) {
            bitmap = bitmap.copy(Bitmap.Config.HARDWARE, false);
        }
        mState.mLastDrawnBitmap = bitmap;