From 367da9f422e7fad45da351e79b1ade29c366ef7e Mon Sep 17 00:00:00 2001 From: Kenny Guy Date: Wed, 25 May 2016 19:22:14 +0100 Subject: [PATCH] Update wallpaper API to match NYC change. Update check for whether setting wallpaper is allowed for renamed API. Bug: 28954131 Change-Id: I09ee46167d59d267ba95d136366f78f5735ea9a5 --- src/com/android/launcher3/Utilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 00ee387b3b..2f460bcece 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -849,7 +849,7 @@ public final class Utilities { if (isNycOrAbove()) { try { WallpaperManager wm = context.getSystemService(WallpaperManager.class); - return (Boolean) wm.getClass().getDeclaredMethod("isWallpaperSettingAllowed") + return (Boolean) wm.getClass().getDeclaredMethod("isSetWallpaperAllowed") .invoke(wm); } catch (Exception e) { } }