Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c26f4f9 authored by chihhangchuang's avatar chihhangchuang
Browse files

Apply BitmapCachingAsset for WallpaperColorsLoader to use the catched bitmap

parent 77140557
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -102,6 +102,7 @@ public class CustomThemeNameFragment extends CustomThemeStepFragment {
        if (mCurrentHomeWallpaper != null && mWallpaperImage.getMeasuredWidth() > 0
                && mWallpaperImage.getMeasuredHeight() > 0) {
            WallpaperColorsLoader.getWallpaperColors(
                    getContext(),
                    mCurrentHomeWallpaper.getThumbAsset(getContext()),
                    mWallpaperImage.getMeasuredWidth(),
                    mWallpaperImage.getMeasuredHeight(),
+1 −0
Original line number Diff line number Diff line
@@ -179,6 +179,7 @@ public class ThemeFragment extends AppbarFragment {
        if (mCurrentHomeWallpaper != null && mWallpaperImage.getMeasuredWidth() > 0
                && mWallpaperImage.getMeasuredHeight() > 0) {
            WallpaperColorsLoader.getWallpaperColors(
                    getContext(),
                    mCurrentHomeWallpaper.getThumbAsset(getContext()),
                    mWallpaperImage.getMeasuredWidth(),
                    mWallpaperImage.getMeasuredHeight(),
+1 −0
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ public class ThemeFullPreviewFragment extends AppbarFragment {
                                       int oldLeft, int oldTop, int oldRight, int oldBottom) {
                wallpaperPreviewer.updatePreviewCardRadius();
                WallpaperColorsLoader.getWallpaperColors(
                        getContext(),
                        mWallpaper.getThumbAsset(getContext()),
                        wallpaperImageView.getMeasuredWidth(),
                        wallpaperImageView.getMeasuredHeight(),