Merge \"Document that WallpaperManager.getDrawable() can return null\" into nyc-mr1-dev
am: 3cec9d44b3
Change-Id: I72443aa4360cb4c22c9b4faf0cf98b395097757f
This commit is contained in:
@@ -417,8 +417,14 @@ public class WallpaperManager {
|
||||
* This is returned as an
|
||||
* abstract Drawable that you can install in a View to display whatever
|
||||
* wallpaper the user has currently set.
|
||||
* <p>
|
||||
* This method can return null if there is no system wallpaper available, if
|
||||
* wallpapers are not supported in the current user, or if the calling app is not
|
||||
* permitted to access the system wallpaper.
|
||||
*
|
||||
* @return Returns a Drawable object that will draw the wallpaper.
|
||||
* @return Returns a Drawable object that will draw the system wallpaper,
|
||||
* or {@code null} if no system wallpaper exists or if the calling application
|
||||
* is not able to access the wallpaper.
|
||||
*/
|
||||
public Drawable getDrawable() {
|
||||
Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM);
|
||||
|
||||
Reference in New Issue
Block a user