commit | 3eed932247ab54554d67fa995a4615f50c7a419d | [log] [tgz] |
---|---|---|
author | Brian Isganitis <brianji@google.com> | Mon Apr 04 20:00:56 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Apr 04 20:00:56 2022 +0000 |
tree | 0941c2838871019282ccdd285737a92fb6a0db90 | |
parent | 1d460f33bfc8de1b1466db9ce9380d535501fb7b [diff] | |
parent | 9417012064045edb3fc9e60fd3d26890e5085662 [diff] |
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: I5702f08dba200d3aefa45c510a67e389c18054ae Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 9bc3d15..972a2e4 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java
@@ -608,6 +608,10 @@ 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(); }