diff options
author | Kenny Guy <kennyguy@google.com> | 2016-05-25 19:22:14 +0100 |
---|---|---|
committer | Kenny Guy <kennyguy@google.com> | 2016-05-25 19:22:14 +0100 |
commit | ad3ca7d1bf5e2ba8671ddc99d07326b2a1816f85 (patch) | |
tree | 22d89f43d05565f42533c9256210ca15527007e8 | |
parent | 42ca2fe3a8fe25ab00a1ada6765fa99a4fed9a12 (diff) | |
download | Launcher3-ad3ca7d1bf5e2ba8671ddc99d07326b2a1816f85.tar.gz |
Update wallpaper API to match NYC change.
Update check for whether setting wallpaper
is allowed for renamed API.
Bug: 28954131
Change-Id: I09ee46167d59d267ba95d136366f78f5735ea9a5
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 9fdcd33f97..78ba22eb66 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -827,7 +827,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) { } } |