Merge \"Hide Set Wallpaper in Settings suggestion if it is not allowed\" into nyc-mr1-dev
am: 1a8be1e372
Change-Id: Ic8a85dbb4b654f6df0bad993a1cce986f60ab193
This commit is contained in:
@@ -103,7 +103,8 @@ public class SuggestionsChecks {
|
||||
IBinder b = ServiceManager.getService(Context.WALLPAPER_SERVICE);
|
||||
IWallpaperManager service = Stub.asInterface(b);
|
||||
try {
|
||||
return service.getWallpaper(mCallback, WallpaperManager.FLAG_SYSTEM,
|
||||
return !service.isSetWallpaperAllowed(mContext.getOpPackageName()) ||
|
||||
service.getWallpaper(mCallback, WallpaperManager.FLAG_SYSTEM,
|
||||
new Bundle(), mContext.getUserId()) != null;
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user