Track adjustments to new wallpaper APIs
Bug 28773334 Change-Id: I4b660cf83172cfbd3640d7cf06020de766bda0bc
This commit is contained in:
@@ -827,7 +827,7 @@ public final class Utilities {
|
|||||||
if (isNycOrAbove()) {
|
if (isNycOrAbove()) {
|
||||||
try {
|
try {
|
||||||
WallpaperManager wm = context.getSystemService(WallpaperManager.class);
|
WallpaperManager wm = context.getSystemService(WallpaperManager.class);
|
||||||
return (Boolean) wm.getClass().getDeclaredMethod("isWallpaperSettingAllowed")
|
return (Boolean) wm.getClass().getDeclaredMethod("isSetWallpaperAllowed")
|
||||||
.invoke(wm);
|
.invoke(wm);
|
||||||
} catch (Exception e) { }
|
} catch (Exception e) { }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user