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

Commit 474b0749 authored by Michael Wright's avatar Michael Wright Committed by Android Git Automerger
Browse files

am 809c3698: am 54c3529b: Merge "WallpaperManager: add NULL pointer check for...

am 809c3698: am 54c3529b: Merge "WallpaperManager: add NULL pointer check for getCropAndSetWallpaperIntent"

* commit '809c3698':
  WallpaperManager: add NULL pointer check for getCropAndSetWallpaperIntent
parents f84493ec 809c3698
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -659,6 +659,10 @@ public class WallpaperManager {
     *         not "image/*"
     */
    public Intent getCropAndSetWallpaperIntent(Uri imageUri) {
        if (imageUri == null) {
            throw new IllegalArgumentException("Image URI must not be null");
        }

        if (!ContentResolver.SCHEME_CONTENT.equals(imageUri.getScheme())) {
            throw new IllegalArgumentException("Image URI must be of the "
                    + ContentResolver.SCHEME_CONTENT + " scheme type");