Merge "Add utility for isWallpaperSupported." into tm-dev am: 9417012064

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17303344

Change-Id: I297fafadf3124771488d6f7176876de1810322c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Brian Isganitis
2022-04-04 20:02:10 +00:00
committed by Automerger Merge Worker
+4
View File
@@ -608,6 +608,10 @@ public final class Utilities {
LauncherFiles.DEVICE_PREFERENCES_KEY, Context.MODE_PRIVATE);
}
public static boolean isWallpaperSupported(Context context) {
return context.getSystemService(WallpaperManager.class).isWallpaperSupported();
}
public static boolean isWallpaperAllowed(Context context) {
return context.getSystemService(WallpaperManager.class).isSetWallpaperAllowed();
}