am 65cff642: am 5376e7a8: Merge "Ensuring that the widget drag outline is padded by the default widget padding. (Bug 10881814)" into jb-ub-now-indigo-rose

* commit '65cff6425e09a0217818c4d79c40bf1b2ec2286e':
  Ensuring that the widget drag outline is padded by the default widget padding. (Bug 10881814)
This commit is contained in:
Winson Chung
2013-10-08 16:03:11 -07:00
committed by Android Git Automerger
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -3928,8 +3928,7 @@ public class Launcher extends Activity
mIntentsOnWorkspaceFromUpgradePath = null;
}
} else {
if (!AppsCustomizePagedView.DISABLE_ALL_APPS &&
mAppsCustomizeContent != null) {
if (mAppsCustomizeContent != null) {
mAppsCustomizeContent.setApps(apps);
}
}
+2 -1
View File
@@ -338,7 +338,8 @@ public class Workspace extends SmoothPagedView
ItemInfo itemInfo, boolean springLoaded) {
int[] size = new int[2];
if (getChildCount() > 0) {
CellLayout cl = (CellLayout) mLauncher.getWorkspace().getChildAt(0);
// Use the first non-custom page to estimate the child position
CellLayout cl = (CellLayout) getChildAt(numCustomPages());
Rect r = estimateItemPosition(cl, itemInfo, 0, 0, hSpan, vSpan);
size[0] = r.width();
size[1] = r.height();