Apply BitmapCachingAsset for WallpaperColorsLoader to use the catched bitmap
The catch map: https://source.corp.google.com/android/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/BitmapCachingAsset.java;l=65?q=package:%5E(android)$%20file:(%2F%7C%5E)com%2Fandroid%2Fwallpaper%2Fasset%2FBitmapCachingAsset%5C.java$
Test: Manually
Bug: 146475648
Change-Id: Id2db71766fbc8d90fa20f6feae26c819ce398ea4
diff --git a/src/com/android/customization/picker/theme/CustomThemeNameFragment.java b/src/com/android/customization/picker/theme/CustomThemeNameFragment.java
index 6456380..28f0f1b 100644
--- a/src/com/android/customization/picker/theme/CustomThemeNameFragment.java
+++ b/src/com/android/customization/picker/theme/CustomThemeNameFragment.java
@@ -102,6 +102,7 @@
if (mCurrentHomeWallpaper != null && mWallpaperImage.getMeasuredWidth() > 0
&& mWallpaperImage.getMeasuredHeight() > 0) {
WallpaperColorsLoader.getWallpaperColors(
+ getContext(),
mCurrentHomeWallpaper.getThumbAsset(getContext()),
mWallpaperImage.getMeasuredWidth(),
mWallpaperImage.getMeasuredHeight(),
diff --git a/src/com/android/customization/picker/theme/ThemeFragment.java b/src/com/android/customization/picker/theme/ThemeFragment.java
index 3da41c6..180b5cb 100644
--- a/src/com/android/customization/picker/theme/ThemeFragment.java
+++ b/src/com/android/customization/picker/theme/ThemeFragment.java
@@ -179,6 +179,7 @@
if (mCurrentHomeWallpaper != null && mWallpaperImage.getMeasuredWidth() > 0
&& mWallpaperImage.getMeasuredHeight() > 0) {
WallpaperColorsLoader.getWallpaperColors(
+ getContext(),
mCurrentHomeWallpaper.getThumbAsset(getContext()),
mWallpaperImage.getMeasuredWidth(),
mWallpaperImage.getMeasuredHeight(),
diff --git a/src/com/android/customization/picker/theme/ThemeFullPreviewFragment.java b/src/com/android/customization/picker/theme/ThemeFullPreviewFragment.java
index 3b6923c..77642d5 100644
--- a/src/com/android/customization/picker/theme/ThemeFullPreviewFragment.java
+++ b/src/com/android/customization/picker/theme/ThemeFullPreviewFragment.java
@@ -123,6 +123,7 @@
int oldLeft, int oldTop, int oldRight, int oldBottom) {
wallpaperPreviewer.updatePreviewCardRadius();
WallpaperColorsLoader.getWallpaperColors(
+ getContext(),
mWallpaper.getThumbAsset(getContext()),
wallpaperImageView.getMeasuredWidth(),
wallpaperImageView.getMeasuredHeight(),