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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user