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

Commit f185552f authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Make image wallpaper use a big surface.

Change-Id: I119f2bfee5fde08040520bd0da8574194a893ab5
parent 22ad6243
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -204,12 +204,6 @@ public abstract class WallpaperService extends Service {
                return mIsCreating;
            }

            @Override
            public void setFixedSize(int width, int height) {
                throw new UnsupportedOperationException(
                        "Wallpapers currently only support sizing from layout");
            }
            
            public void setKeepScreenOn(boolean screenOn) {
                throw new UnsupportedOperationException(
                        "Wallpapers do not support keep screen on");
+5 −1
Original line number Diff line number Diff line
@@ -117,7 +117,11 @@ public class ImageWallpaper extends WallpaperService {
            synchronized (mLock) {
                updateWallpaperLocked();
            }
            surfaceHolder.setSizeFromLayout();
            surfaceHolder.setFixedSize(getDesiredMinimumWidth(), getDesiredMinimumHeight());
            // Used a fixed size surface, because we are special.  We can do
            // this because we know the current design of window animations doesn't
            // cause this to break.
            //surfaceHolder.setSizeFromLayout();
        }

        @Override