Merge "Add utility for isWallpaperSupported." into tm-dev

This commit is contained in:
Brian Isganitis
2022-04-04 19:57:25 +00:00
committed by Android (Google) Code Review
+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();
}