diff options
author | Joe Onorato <joeo@android.com> | 2010-10-28 18:03:23 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2010-10-28 18:04:10 -0700 |
commit | dcfae5c0fdc917f15a3e9ab75ee1d819b6db26ba (patch) | |
tree | 26c6fb02be2ad6014e914e6e2d4ee57c28f66e7c /core/java/android/service/wallpaper | |
parent | c9fa90f94b664589d584bb433e748e2b01b368c9 (diff) | |
download | frameworks_base-dcfae5c0fdc917f15a3e9ab75ee1d819b6db26ba.zip frameworks_base-dcfae5c0fdc917f15a3e9ab75ee1d819b6db26ba.tar.gz frameworks_base-dcfae5c0fdc917f15a3e9ab75ee1d819b6db26ba.tar.bz2 |
Report the new size to wallpapers when the requested size changed.
We were telling the app, but we weren't saving the data for ourselves.
This also tells them to re-scroll when there's a new size.
Bug: 3144373
Change-Id: I9d12b714119ff02dd7d7f1cfa997d8a44475b9e9
Diffstat (limited to 'core/java/android/service/wallpaper')
-rw-r--r-- | core/java/android/service/wallpaper/WallpaperService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/service/wallpaper/WallpaperService.java b/core/java/android/service/wallpaper/WallpaperService.java index 9645a17..26346d2 100644 --- a/core/java/android/service/wallpaper/WallpaperService.java +++ b/core/java/android/service/wallpaper/WallpaperService.java @@ -655,7 +655,10 @@ public abstract class WallpaperService extends Service { if (!mDestroyed) { if (DEBUG) Log.v(TAG, "onDesiredSizeChanged(" + desiredWidth + "," + desiredHeight + "): " + this); + mIWallpaperEngine.mReqWidth = desiredWidth; + mIWallpaperEngine.mReqHeight = desiredHeight; onDesiredSizeChanged(desiredWidth, desiredHeight); + doOffsetsChanged(); } } |