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

Commit c0eec7d5 authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan
Browse files

framework: Fix default wallpaper maxWidth

Broken by http://review.cyanogenmod.com/20439 for devices not
specifying maxWidth

Change-Id: I5092a3dffe4c84e47044cfc9a3039a73a989e0e2
parent d227c957
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -531,7 +531,7 @@ class WallpaperManagerService extends IWallpaperManager.Stub {

        int maxWidth = mContext.getResources().getInteger(
                com.android.internal.R.integer.config_wallpaperMaxWidth);
        if (width > maxWidth) {
        if (maxWidth != -1 && width > maxWidth) {
            width = maxWidth;
        }