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

Commit 1a83deb5 authored by Chris Tate's avatar Chris Tate Committed by android-build-merger
Browse files

Merge \\"Document that WallpaperManager.getDrawable() can return null\\" into...

Merge \\"Document that WallpaperManager.getDrawable() can return null\\" into nyc-mr1-dev am: 3cec9d44
am: ca0e0b9b

Change-Id: Id27ec9541d4075f80a546d3df2bfd7577e38f0fc
parents 3f94a2e3 ca0e0b9b
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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.
     *
     * @return Returns a Drawable object that will draw the wallpaper.
     * <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 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);