Merge "Add utility for isWallpaperSupported." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9417012064
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user