Loading packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +4 −2 Original line number Diff line number Diff line Loading @@ -120,6 +120,7 @@ public class ImageWallpaper extends WallpaperService { boolean mVisible = true; boolean mRedrawNeeded; boolean mOffsetsChanged; boolean mSurfaceChanged; int mLastXTranslation; int mLastYTranslation; Loading Loading @@ -300,7 +301,7 @@ public class ImageWallpaper extends WallpaperService { } super.onSurfaceChanged(holder, format, width, height); mSurfaceChanged = true; drawFrame(); } Loading Loading @@ -342,9 +343,10 @@ public class ImageWallpaper extends WallpaperService { // Sometimes a wallpaper is not large enough to cover the screen in one dimension. // Call updateSurfaceSize -- it will only actually do the update if the dimensions // should change if (newRotation != mLastRotation) { if (newRotation != mLastRotation || mSurfaceChanged ) { // Update surface size (if necessary) updateSurfaceSize(getSurfaceHolder()); mSurfaceChanged = false; } SurfaceHolder sh = getSurfaceHolder(); final Rect frame = sh.getSurfaceFrame(); Loading Loading
packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +4 −2 Original line number Diff line number Diff line Loading @@ -120,6 +120,7 @@ public class ImageWallpaper extends WallpaperService { boolean mVisible = true; boolean mRedrawNeeded; boolean mOffsetsChanged; boolean mSurfaceChanged; int mLastXTranslation; int mLastYTranslation; Loading Loading @@ -300,7 +301,7 @@ public class ImageWallpaper extends WallpaperService { } super.onSurfaceChanged(holder, format, width, height); mSurfaceChanged = true; drawFrame(); } Loading Loading @@ -342,9 +343,10 @@ public class ImageWallpaper extends WallpaperService { // Sometimes a wallpaper is not large enough to cover the screen in one dimension. // Call updateSurfaceSize -- it will only actually do the update if the dimensions // should change if (newRotation != mLastRotation) { if (newRotation != mLastRotation || mSurfaceChanged ) { // Update surface size (if necessary) updateSurfaceSize(getSurfaceHolder()); mSurfaceChanged = false; } SurfaceHolder sh = getSurfaceHolder(); final Rect frame = sh.getSurfaceFrame(); Loading