Loading core/java/android/service/wallpaper/WallpaperService.java +0 −6 Original line number Diff line number Diff line Loading @@ -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"); Loading core/java/com/android/internal/service/wallpaper/ImageWallpaper.java +5 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
core/java/android/service/wallpaper/WallpaperService.java +0 −6 Original line number Diff line number Diff line Loading @@ -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"); Loading
core/java/com/android/internal/service/wallpaper/ImageWallpaper.java +5 −1 Original line number Diff line number Diff line Loading @@ -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 Loading