summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-01-18 07:52:42 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-01-18 07:52:42 -0800
commitab1094f2d7fc7f1bdbb17f50f3066825922167dc (patch)
tree126b42b0f2a4cc6ab33dc74fb2a1e0d4398ec3bb
parentba907a66e7167c8e9e3c4b33590f0305b0ade456 (diff)
parente0963f27096b2433f56d4929c0461c92a683659b (diff)
downloadandroid_packages_apps_Trebuchet-ab1094f2d7fc7f1bdbb17f50f3066825922167dc.tar.gz
android_packages_apps_Trebuchet-ab1094f2d7fc7f1bdbb17f50f3066825922167dc.tar.bz2
android_packages_apps_Trebuchet-ab1094f2d7fc7f1bdbb17f50f3066825922167dc.zip
am e0963f27: am f4ffdc63: Merge "removed some more unnecessary code" into honeycomb
* commit 'e0963f27096b2433f56d4929c0461c92a683659b': removed some more unnecessary code
-rw-r--r--src/com/android/launcher2/CellLayout.java30
-rw-r--r--src/com/android/launcher2/Workspace.java5
2 files changed, 1 insertions, 34 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java
index cf82abb9d..af2f984b4 100644
--- a/src/com/android/launcher2/CellLayout.java
+++ b/src/com/android/launcher2/CellLayout.java
@@ -797,18 +797,6 @@ public class CellLayout extends ViewGroup implements Dimmable, VisibilityChanged
}
/**
- * Check if the row 'y' is empty from columns 'left' to 'right', inclusive.
- */
- private static boolean isRowEmpty(int y, int left, int right, boolean[][] occupied) {
- for (int x = left; x <= right; x++) {
- if (occupied[x][y]) {
- return false;
- }
- }
- return true;
- }
-
- /**
* Given a point, return the cell that strictly encloses that point
* @param x X coordinate of the point
* @param y Y coordinate of the point
@@ -1042,24 +1030,6 @@ public class CellLayout extends ViewGroup implements Dimmable, VisibilityChanged
}
}
- private boolean isVacantIgnoring(
- int originX, int originY, int spanX, int spanY, View ignoreView) {
- if (ignoreView != null) {
- markCellsAsUnoccupiedForView(ignoreView);
- }
- boolean isVacant = true;
- for (int i = 0; i < spanY; i++) {
- if (!isRowEmpty(originY + i, originX, originX + spanX - 1, mOccupied)) {
- isVacant = false;
- break;
- }
- }
- if (ignoreView != null) {
- markCellsAsOccupiedForView(ignoreView);
- }
- return isVacant;
- }
-
public View getChildAt(int x, int y) {
final int count = getChildCount();
for (int i = 0; i < count; i++) {
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 8f9c67eda..af7d080a7 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -599,9 +599,6 @@ public class Workspace extends SmoothPagedView
}
protected void setWallpaperDimension() {
- WallpaperManager wpm =
- (WallpaperManager) mLauncher.getSystemService(Context.WALLPAPER_SERVICE);
-
Display display = mLauncher.getWindowManager().getDefaultDisplay();
final int maxDim = Math.max(display.getWidth(), display.getHeight());
final int minDim = Math.min(display.getWidth(), display.getHeight());
@@ -610,7 +607,7 @@ public class Workspace extends SmoothPagedView
// parallax effects
mWallpaperWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim));
mWallpaperHeight = (int)(maxDim * wallpaperTravelToScreenHeightRatio(maxDim, minDim));
- wpm.suggestDesiredDimensions(mWallpaperWidth, mWallpaperHeight);
+ mWallpaperManager.suggestDesiredDimensions(mWallpaperWidth, mWallpaperHeight);
}
public void setVerticalWallpaperOffset(WallpaperVerticalOffset offsetPosition) {