commit | 813bf2d243fdc4b7549108cbe5b8395d1b43322a | [log] [tgz] |
---|---|---|
author | Brian Isganitis <brianji@google.com> | Fri Aug 27 20:20:21 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Aug 27 20:20:21 2021 +0000 |
tree | 4d745fa83da64fa75d72e0a2f004019884cd967d | |
parent | 5c1d3389d5f57c516a7448937f440bb1944e3429 [diff] | |
parent | 720795a039398aa69cf92b4639a573edb21122c9 [diff] |
Merge "Support dark theme in wallpaper launcher preview." into sc-v2-dev am: ca74b4d5be am: 720795a039 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15694616 Change-Id: I8b31956d2f269f2d20fb03518fa9e297bad04e65
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) {