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

Commit db904b47 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #5628789: Cannot set static/custom wallpaper after clearing...

Merge "Fix issue #5628789: Cannot set static/custom wallpaper after clearing Settings data" into ics-mr1
parents cc084f1d ebac48c6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -476,6 +476,13 @@ class WallpaperManagerService extends IWallpaperManager.Stub {
    ParcelFileDescriptor updateWallpaperBitmapLocked(String name) {
        if (name == null) name = "";
        try {
            if (!WALLPAPER_DIR.exists()) {
                WALLPAPER_DIR.mkdir();
                FileUtils.setPermissions(
                        WALLPAPER_DIR.getPath(),
                        FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH,
                        -1, -1);
            }
            ParcelFileDescriptor fd = ParcelFileDescriptor.open(WALLPAPER_FILE,
                    MODE_CREATE|MODE_READ_WRITE);
            mName = name;