Merge "Report an offset change in a live wallpaper when the wallpaper is resized. Bug #2489288"

This commit is contained in:
Romain Guy
2010-03-04 16:52:16 -08:00
committed by Android (Google) Code Review

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