summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/DragController.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-06-30 12:09:54 -0700
committerAdam Cohen <adamcohen@google.com>2011-06-30 13:53:30 -0700
commit716b51e030f9c6ed34af2b947760e46a280c65a6 (patch)
treeb3e8bf705c61b8a8fca03bb9a9e5c07578f7d60e /src/com/android/launcher2/DragController.java
parent6a0f57dfafced837a2a282d8feec28d5418be3b9 (diff)
downloadandroid_packages_apps_Trebuchet-716b51e030f9c6ed34af2b947760e46a280c65a6.tar.gz
android_packages_apps_Trebuchet-716b51e030f9c6ed34af2b947760e46a280c65a6.tar.bz2
android_packages_apps_Trebuchet-716b51e030f9c6ed34af2b947760e46a280c65a6.zip
Adding transitions after reorder within folder
Change-Id: I52b20fa1b2e4f9ee0b4a68ac703b95a2050dbd4a
Diffstat (limited to 'src/com/android/launcher2/DragController.java')
-rw-r--r--src/com/android/launcher2/DragController.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/com/android/launcher2/DragController.java b/src/com/android/launcher2/DragController.java
index 5b1b20a68..ca72ce937 100644
--- a/src/com/android/launcher2/DragController.java
+++ b/src/com/android/launcher2/DragController.java
@@ -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();
}