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