diff options
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/DeleteDropTarget.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/DeleteDropTarget.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java b/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java index 82fccb791..1699c94e9 100644 --- a/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java +++ b/src/com/cyanogenmod/trebuchet/DeleteDropTarget.java @@ -29,8 +29,6 @@ import android.view.View; import android.view.ViewGroup; import android.view.animation.DecelerateInterpolator; -import com.cyanogenmod.trebuchet.R; - public class DeleteDropTarget extends ButtonDropTarget { private static int DELETE_ANIMATION_DURATION = 250; @@ -178,8 +176,8 @@ public class DeleteDropTarget extends ButtonDropTarget { to.left + getPaddingLeft() + width, to.bottom); // Center the destination rect about the trash icon - int xOffset = (int) -(d.dragView.getMeasuredWidth() - width) / 2; - int yOffset = (int) -(d.dragView.getMeasuredHeight() - height) / 2; + int xOffset = -(d.dragView.getMeasuredWidth() - width) / 2; + int yOffset = -(d.dragView.getMeasuredHeight() - height) / 2; to.offset(xOffset, yOffset); mSearchDropTargetBar.deferOnDragEnd(); |