commit | 720795a039398aa69cf92b4639a573edb21122c9 | [log] [tgz] |
---|---|---|
author | Brian Isganitis <brianji@google.com> | Fri Aug 27 20:01:27 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Aug 27 20:01:27 2021 +0000 |
tree | 3f89a10e1466575078c4466329c12acdbca80b01 | |
parent | 46a12273fc8fed961d29216a3d440e14f6f07999 [diff] | |
parent | ca74b4d5be84cc80f0920d60fe0547980e83f458 [diff] |
Merge "Support dark theme in wallpaper launcher preview." into sc-v2-dev am: ca74b4d5be Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15694616 Change-Id: I85aec4aab4391f642842b6e3178c3d7c28150540
diff --git a/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java b/src/com/android/launcher3/graphics/PreviewSurfaceRenderer.java index f4d1e61..2f3d5d8 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.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 @@ 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) {