As the title says. The scaling might even have empty space (black) when doing so. And if often shows there is nowhere to scroll horizontally.
Best way to check this out is to have a large-resolution of a square image/video, I think.
It seems the reason for this is that the new screen resolution (switching between width&height) doesn't affect the app in any way when it was portrait before.
This feature of changing orientation is available on various launchers, such as Nova launcher and even Pixel launcher.
Please tell how to fix it.
Maybe use onConfigurationChange, to tell the live wallpaper engine to check again the parameters?
Or maybe onSurfaceChanged should update the value of mScreenSize in ImageWallpaperSCRender, and not just in ImageWallpaperSCService ?
I thought that maybe in viewRecreate , in the part of "If the image size has changed", it's supposed to be "||" and not "&&" for the setting of the centering-camera, but it seems it doesn't help.
I thought so because it should reset when either the size has changed or the orientation has changed, probably...
As the title says. The scaling might even have empty space (black) when doing so. And if often shows there is nowhere to scroll horizontally.
Best way to check this out is to have a large-resolution of a square image/video, I think.
It seems the reason for this is that the new screen resolution (switching between width&height) doesn't affect the app in any way when it was portrait before.
This feature of changing orientation is available on various launchers, such as Nova launcher and even Pixel launcher.
Please tell how to fix it.
Maybe use onConfigurationChange, to tell the live wallpaper engine to check again the parameters?
Or maybe onSurfaceChanged should update the value of mScreenSize in ImageWallpaperSCRender, and not just in ImageWallpaperSCService ?
I thought that maybe in viewRecreate , in the part of "If the image size has changed", it's supposed to be "||" and not "&&" for the setting of the centering-camera, but it seems it doesn't help.
I thought so because it should reset when either the size has changed or the orientation has changed, probably...