mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Update wallpaper API to match NYC change.
Update check for whether setting wallpaper is allowed for renamed API. Bug: 28954131 Change-Id: I09ee46167d59d267ba95d136366f78f5735ea9a5
This commit is contained in:
@@ -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) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user