diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-04-30 00:30:28 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-04-30 00:30:28 +0200 |
commit | 8663738c00f7d82362743e2f9b7cf41aa7f02be7 (patch) | |
tree | 8eca7719d8913b522f3dd27beb750b83270a7223 /src | |
parent | bb5e8030ec6b546f62364fde808fa2ba8107f998 (diff) | |
download | packages_apps_trebuchet-8663738c00f7d82362743e2f9b7cf41aa7f02be7.zip packages_apps_trebuchet-8663738c00f7d82362743e2f9b7cf41aa7f02be7.tar.gz packages_apps_trebuchet-8663738c00f7d82362743e2f9b7cf41aa7f02be7.tar.bz2 |
Trebuchet: Force reload wallpaper dimension on screen size change
This ensures that the wallpaper dimensions are adjusted when a screen size change occurs,
for example when the expanded desktop feature is activated on devices without hard keys.
Change-Id: I4be96034a609afb2dd18e346b04ffacfed4e7043
JIRA: CYAN-790
Issue: https://jira.cyanogenmod.org/browse/CYAN-790
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Workspace.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java index c6da8a9..8a5d03a 100644 --- a/src/com/cyanogenmod/trebuchet/Workspace.java +++ b/src/com/cyanogenmod/trebuchet/Workspace.java @@ -1833,6 +1833,7 @@ public class Workspace extends PagedView protected void onSizeChanged (int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); + setupWallpaper(); getLocationOnScreen(mWallpaperOffsets); } @@ -4012,12 +4013,16 @@ public class Workspace extends PagedView // hardware layers on children are enabled on startup, but should be disabled until // needed updateChildrenLayersEnabled(false); + setupWallpaper(); + + mIsLandscape = LauncherApplication.isScreenLandscape(mLauncher); + } + + void setupWallpaper() { setWallpaperDimension(); if (!mScrollWallpaper) { centerWallpaperOffset(); } - - mIsLandscape = LauncherApplication.isScreenLandscape(mLauncher); } /** |