Loading core/java/android/app/WallpaperManager.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -910,7 +910,7 @@ public class WallpaperManager { * wallpaper. * wallpaper. */ */ public void setResource(@RawRes int resid) throws IOException { public void setResource(@RawRes int resid) throws IOException { setResource(resid, FLAG_SYSTEM); setResource(resid, FLAG_SYSTEM | FLAG_LOCK); } } /** /** Loading Loading @@ -1016,7 +1016,7 @@ public class WallpaperManager { */ */ public int setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup) public int setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup) throws IOException { throws IOException { return setBitmap(fullImage, visibleCropHint, allowBackup, FLAG_SYSTEM); return setBitmap(fullImage, visibleCropHint, allowBackup, FLAG_SYSTEM | FLAG_LOCK); } } /** /** Loading Loading @@ -1154,7 +1154,7 @@ public class WallpaperManager { */ */ public int setStream(InputStream bitmapData, Rect visibleCropHint, boolean allowBackup) public int setStream(InputStream bitmapData, Rect visibleCropHint, boolean allowBackup) throws IOException { throws IOException { return setStream(bitmapData, visibleCropHint, allowBackup, FLAG_SYSTEM); return setStream(bitmapData, visibleCropHint, allowBackup, FLAG_SYSTEM | FLAG_LOCK); } } /** /** Loading Loading @@ -1393,7 +1393,7 @@ public class WallpaperManager { */ */ @SystemApi @SystemApi public void clearWallpaper() { public void clearWallpaper() { clearWallpaper(FLAG_SYSTEM, mContext.getUserId()); clearWallpaper(FLAG_SYSTEM | FLAG_LOCK, mContext.getUserId()); } } /** /** Loading Loading
core/java/android/app/WallpaperManager.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -910,7 +910,7 @@ public class WallpaperManager { * wallpaper. * wallpaper. */ */ public void setResource(@RawRes int resid) throws IOException { public void setResource(@RawRes int resid) throws IOException { setResource(resid, FLAG_SYSTEM); setResource(resid, FLAG_SYSTEM | FLAG_LOCK); } } /** /** Loading Loading @@ -1016,7 +1016,7 @@ public class WallpaperManager { */ */ public int setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup) public int setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup) throws IOException { throws IOException { return setBitmap(fullImage, visibleCropHint, allowBackup, FLAG_SYSTEM); return setBitmap(fullImage, visibleCropHint, allowBackup, FLAG_SYSTEM | FLAG_LOCK); } } /** /** Loading Loading @@ -1154,7 +1154,7 @@ public class WallpaperManager { */ */ public int setStream(InputStream bitmapData, Rect visibleCropHint, boolean allowBackup) public int setStream(InputStream bitmapData, Rect visibleCropHint, boolean allowBackup) throws IOException { throws IOException { return setStream(bitmapData, visibleCropHint, allowBackup, FLAG_SYSTEM); return setStream(bitmapData, visibleCropHint, allowBackup, FLAG_SYSTEM | FLAG_LOCK); } } /** /** Loading Loading @@ -1393,7 +1393,7 @@ public class WallpaperManager { */ */ @SystemApi @SystemApi public void clearWallpaper() { public void clearWallpaper() { clearWallpaper(FLAG_SYSTEM, mContext.getUserId()); clearWallpaper(FLAG_SYSTEM | FLAG_LOCK, mContext.getUserId()); } } /** /** Loading