Merge "Add override to WallpaperManager.peekBitmapDimensions with which param" into tm-qpr-dev am: aebffa1f2a am: 5392d935b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20552100 Change-Id: I8902c9960038c3148fc5b89c6756386045ab4bf1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1148,11 +1148,25 @@ public class WallpaperManager {
|
||||
* @return the dimensions of system wallpaper
|
||||
* @hide
|
||||
*/
|
||||
@Nullable
|
||||
public Rect peekBitmapDimensions() {
|
||||
return sGlobals.peekWallpaperDimensions(
|
||||
mContext, true /* returnDefault */, mContext.getUserId());
|
||||
}
|
||||
|
||||
/**
|
||||
* Peek the dimensions of given wallpaper of the user without decoding it.
|
||||
*
|
||||
* @param which Wallpaper type. Must be either {@link #FLAG_SYSTEM} or
|
||||
* {@link #FLAG_LOCK}.
|
||||
* @return the dimensions of system wallpaper
|
||||
* @hide
|
||||
*/
|
||||
@Nullable
|
||||
public Rect peekBitmapDimensions(@SetWallpaperFlags int which) {
|
||||
return peekBitmapDimensions();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an open, readable file descriptor to the given wallpaper image file.
|
||||
* The caller is responsible for closing the file descriptor when done ingesting the file.
|
||||
|
||||
Reference in New Issue
Block a user