From 719fcb1561cf3d64320168d0edb3f0f19860412b Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 6 Aug 2018 17:00:44 -0700 Subject: [PATCH] Using proper checks for hardware bitmap usage Change-Id: Ic8efef8ac54ee4c7887860c404060da3c00f4024 --- src/com/android/launcher3/graphics/ShadowDrawable.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/android/launcher3/graphics/ShadowDrawable.java b/src/com/android/launcher3/graphics/ShadowDrawable.java index b40bf78280..19e2768ccb 100644 --- a/src/com/android/launcher3/graphics/ShadowDrawable.java +++ b/src/com/android/launcher3/graphics/ShadowDrawable.java @@ -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;