Merge "Make image wallpaper use a big surface." into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
bd77ed7fff
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user