From 1094b503f570daf3662f8dbed1e156095e12d328 Mon Sep 17 00:00:00 2001 From: Brian Isganitis Date: Fri, 27 Aug 2021 14:21:42 -0400 Subject: [PATCH] Support dark theme in wallpaper launcher preview. Test: Search bar in wallpaper preview follows dark theme without themed icons enabled. Fix: 197475508 Change-Id: Ib71356fad3510348c1408c886c4796bc16a59642 --- .../android/launcher3/graphics/PreviewSurfaceRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java b/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java index f4d1e615d7..2f3d5d8a61 100644 --- a/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java +++ b/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java @@ -41,7 +41,6 @@ import com.android.launcher3.DeviceProfile; import com.android.launcher3.InvariantDeviceProfile; import com.android.launcher3.LauncherAppState; import com.android.launcher3.LauncherSettings; -import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.Workspace; import com.android.launcher3.graphics.LauncherPreviewRenderer.PreviewContext; @@ -149,7 +148,8 @@ public class PreviewSurfaceRenderer { inflationContext = new ContextThemeWrapper(context, Themes.getActivityThemeRes(context, mWallpaperColors.getColorHints())); } else { - inflationContext = new ContextThemeWrapper(mContext, R.style.AppTheme); + inflationContext = new ContextThemeWrapper(mContext, + Themes.getActivityThemeRes(mContext)); } if (migrated) {