Report an offset change in a live wallpaper when the wallpaper is resized.

Bug #2489288

Prior to this change, changing the display's orientation would not send an offset
change, which could cause live wallpapers relying on pixel offsets to display the
wrong position.
This commit is contained in:
Romain Guy
2010-03-04 16:07:49 -08:00
parent 9d05a18490
commit 04cde3413c

View File

@@ -821,6 +821,7 @@ public abstract class WallpaperService extends Service {
case MSG_WINDOW_RESIZED: {
final boolean reportDraw = message.arg1 != 0;
mEngine.updateSurface(true, false);
mEngine.doOffsetsChanged();
if (reportDraw) {
try {
mEngine.mSession.finishDrawing(mEngine.mWindow);