Merge "Fix WallpaperManager APIs"

am: 73e89cd290

Change-Id: I6dd139e8ccb71e6c64141733f9de031b20694179
This commit is contained in:
Chris Tate
2016-09-21 20:34:49 +00:00
committed by android-build-merger

View File

@@ -898,7 +898,7 @@ public class WallpaperManager {
* wallpaper.
*/
public void setResource(@RawRes int resid) throws IOException {
setResource(resid, FLAG_SYSTEM);
setResource(resid, FLAG_SYSTEM | FLAG_LOCK);
}
/**
@@ -1003,7 +1003,7 @@ public class WallpaperManager {
*/
public int setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup)
throws IOException {
return setBitmap(fullImage, visibleCropHint, allowBackup, FLAG_SYSTEM);
return setBitmap(fullImage, visibleCropHint, allowBackup, FLAG_SYSTEM | FLAG_LOCK);
}
/**
@@ -1128,7 +1128,7 @@ public class WallpaperManager {
*/
public int setStream(InputStream bitmapData, Rect visibleCropHint, boolean allowBackup)
throws IOException {
return setStream(bitmapData, visibleCropHint, allowBackup, FLAG_SYSTEM);
return setStream(bitmapData, visibleCropHint, allowBackup, FLAG_SYSTEM | FLAG_LOCK);
}
/**
@@ -1367,7 +1367,7 @@ public class WallpaperManager {
*/
@SystemApi
public void clearWallpaper() {
clearWallpaper(FLAG_SYSTEM, mContext.getUserId());
clearWallpaper(FLAG_SYSTEM | FLAG_LOCK, mContext.getUserId());
}
/**