Disable wallpaper panning when switching to All Apps

This commit is contained in:
Michael Jurka
2011-07-08 17:08:51 -07:00
parent 14a001ad67
commit ff0e01b65d
+8 -2
View File
@@ -1439,7 +1439,10 @@ public class Workspace extends SmoothPagedView
float offsetFromCenter = (wallpaperTravelHeight / (float) mWallpaperHeight) / 2f;
boolean isLandscape = display.getWidth() > display.getHeight();
final boolean enableWallpaperEffects = isHardwareAccelerated();
// on phones, don't scroll the wallpaper horizontally or vertically when switching
// to/from all apps
final boolean enableWallpaperEffects =
isHardwareAccelerated() && LauncherApplication.isScreenLarge();
if (enableWallpaperEffects) {
switch (shrinkState) {
// animating in
@@ -1752,7 +1755,10 @@ public class Workspace extends SmoothPagedView
}
Display display = mLauncher.getWindowManager().getDefaultDisplay();
boolean isLandscape = display.getWidth() > display.getHeight();
final boolean enableWallpaperEffects = isHardwareAccelerated();
// on phones, don't scroll the wallpaper horizontally or vertically when switching
// to/from all apps
final boolean enableWallpaperEffects =
isHardwareAccelerated() && LauncherApplication.isScreenLarge();
if (enableWallpaperEffects) {
switch (mShrinkState) {
// animating out