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

Commit 672181df authored by Clark Scheff's avatar Clark Scheff Committed by Gerrit Code Review
Browse files

Themes: Fix setting wallpaper from a legacy theme

Change-Id: I3bfc9ee24d2a3ee5c1bdb97f2c07427e6d723206
parent 27d5b9a8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -561,6 +561,9 @@ public class ThemeService extends IThemeService.Stub {
                    PackageManager pm = mContext.getPackageManager();
                    PackageInfo pi = pm.getPackageInfo(pkgName, 0);
                    if (pi.legacyThemeInfos != null && pi.legacyThemeInfos.length > 0) {
                        // we need to get an instance of the WallpaperManager using the theme's
                        // context so it can retrieve the resource
                        wm = WallpaperManager.getInstance(themeContext);
                        wm.setResource(pi.legacyThemeInfos[0].wallpaperResourceId);
                    } else {
                        return false;