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

Commit aa33e703 authored by Lucas Dupin's avatar Lucas Dupin Committed by Gerrit Code Review
Browse files

Merge "Fix exception caused by system app setting wallpaper"

parents eac48858 00b78714
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2713,6 +2713,13 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
        checkPermission(android.Manifest.permission.SET_WALLPAPER_DIM_AMOUNT);
        synchronized (mLock) {
            WallpaperData data = mWallpaperMap.get(mCurrentUserId);
            if (data == null) {
                data = mWallpaperMap.get(UserHandle.USER_SYSTEM);
                if (data == null) {
                    Slog.e(TAG, "getWallpaperDimAmount: wallpaperData is null");
                    return 0.0f;
                }
            }
            return data.mWallpaperDimAmount;
        }
    }