Merge "Make image wallpaper use a big surface." into honeycomb

This commit is contained in:
Dianne Hackborn
2011-02-01 16:23:47 -08:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 7 deletions

View File

@@ -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");

View File

@@ -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