Fixing various small bugs with launcher

- Items added from customization tray add from top left now
- Fixing issue where wallpaper tab was not showing
- Workaround for the extra pixel line showing in homescreen drag icons
- Speeding up animations for tab transitions and clicking

Change-Id: I865531bb4cf896320a9e2ff6cef08bed221a2294
This commit is contained in:
Winson Chung committed 2010-11-11 17:20:48 -08:00
1 parent 580e277481
commit bbc60d8e79
8 files changed
+35 -18

No files matched your search

+4 -3
View File
@@ -1046,8 +1046,8 @@ public class Workspace extends SmoothPagedView
// For a TextView, adjust the clip rect so that we don't include the text label
if (v instanceof TextView) {
final int iconHeight = ((TextView) v).getCompoundPaddingTop()
clipRect.bottom = clipRect.top + iconHeight;
final TextView tv = (TextView) v;
clipRect.bottom = clipRect.top + tv.getCompoundPaddingTop() - 1;
}
// Draw the View into the bitmap.
@@ -1844,7 +1844,8 @@ public class Workspace extends SmoothPagedView
if (view == null) {
cellLayout.onDragExit();
} else {
mTargetCell = findNearestVacantArea(x, y, 1, 1, null, cellLayout, mTargetCell);
mTargetCell = new int[]{x, y};
cellLayout.findCellForSpan(mTargetCell, 1, 1);
addInScreen(view, indexOfChild(cellLayout), mTargetCell[0],
mTargetCell[1], info.spanX, info.spanY, insertAtFirst);
cellLayout.onDropChild(view);