Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c5a27dc authored by Tony Mak's avatar Tony Mak
Browse files

Hide Set Wallpaper in Settings suggestion if it is not allowed

Change-Id: I8030389f3fe945c3df241f347d58b8da04622d9e
Fix: 30089761
parent 987eadbd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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) {
        }