Adding transitions after reorder within folder

Change-Id: I52b20fa1b2e4f9ee0b4a68ac703b95a2050dbd4a
This commit is contained in:
Adam Cohen
2011-06-30 12:09:54 -07:00
parent 6a0f57dfaf
commit 716b51e030
8 changed files with 161 additions and 185 deletions

View File

@@ -81,9 +81,6 @@ public class DragController {
/** Info about the screen for clamping. */
private DisplayMetrics mDisplayMetrics = new DisplayMetrics();
/** Original view that is being dragged. */
private View mOriginator;
/** the area at the edge of the screen that makes the workspace go left
* or right while you're dragging.
*/
@@ -178,8 +175,6 @@ public class DragController {
*/
public void startDrag(View v, DragSource source, Object dragInfo, int dragAction,
Rect dragRegion) {
mOriginator = v;
Bitmap b = getViewBitmap(v);
if (b == null) {
@@ -214,8 +209,6 @@ public class DragController {
*/
public void startDrag(View v, Bitmap bmp, DragSource source, Object dragInfo, int dragAction,
Rect dragRegion) {
mOriginator = v;
int[] loc = mCoordinatesTemp;
v.getLocationOnScreen(loc);
int screenX = loc[0];
@@ -383,9 +376,6 @@ public class DragController {
private void endDrag() {
if (mDragging) {
mDragging = false;
if (mOriginator != null) {
mOriginator.setVisibility(View.VISIBLE);
}
for (DragListener listener : mListeners) {
listener.onDragEnd();
}