From 3fc41e760abc9c15bdf35171bc40f8864b5143ee Mon Sep 17 00:00:00 2001 From: Santiago Etchebehere Date: Thu, 17 Jan 2019 13:25:59 -0800 Subject: [PATCH] Don't render background in PreviewRenderer ThemePicker will add the current wallpaper as background instead. Bug: 122262084 Change-Id: Ib0781abd09afc98a56649888c59074888af1740e --- .../android/launcher3/graphics/LauncherPreviewRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java b/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java index e52fe66f78..837749d16c 100644 --- a/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java +++ b/src/com/android/launcher3/graphics/LauncherPreviewRenderer.java @@ -21,6 +21,7 @@ import static android.view.View.VISIBLE; import android.annotation.TargetApi; import android.app.Fragment; +import android.app.WallpaperManager; import android.content.Context; import android.content.Intent; import android.content.res.TypedArray; @@ -29,6 +30,7 @@ import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Rect; import android.graphics.drawable.AdaptiveIconDrawable; +import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.ColorDrawable; import android.os.Build; import android.os.Handler; @@ -281,7 +283,6 @@ public class LauncherPreviewRenderer implements Callable { // Additional measure for views which use auto text size API measureView(mRootView, mDp.widthPx, mDp.heightPx); - canvas.drawColor(Color.GRAY); mRootView.draw(canvas); dispatchVisibilityAggregated(mRootView, false); }