diff options
author | Winson Chung <winsonc@google.com> | 2011-10-19 21:36:08 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-10-19 23:57:04 -0700 |
commit | b8c69f3c17a40adc2d85e8e996f754c383c293dc (patch) | |
tree | e29218ccbd4ce9345c3706d5c9fe15ccff17f780 /src/com/android/launcher2/DragView.java | |
parent | fa4656a60b6a9e2f9b21a575c11a1d5c6e6771fc (diff) | |
download | android_packages_apps_Trebuchet-b8c69f3c17a40adc2d85e8e996f754c383c293dc.tar.gz android_packages_apps_Trebuchet-b8c69f3c17a40adc2d85e8e996f754c383c293dc.tar.bz2 android_packages_apps_Trebuchet-b8c69f3c17a40adc2d85e8e996f754c383c293dc.zip |
Fixing issue where holographic outlines were offset when dragging from/to folders/hotseat. (Bug: 5399792)
Change-Id: Iaa39ef1293b45a1d116210ec9d7fbde17dbc99cc
Diffstat (limited to 'src/com/android/launcher2/DragView.java')
-rw-r--r-- | src/com/android/launcher2/DragView.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/com/android/launcher2/DragView.java b/src/com/android/launcher2/DragView.java index 386cb55d3..dd94175b6 100644 --- a/src/com/android/launcher2/DragView.java +++ b/src/com/android/launcher2/DragView.java @@ -24,11 +24,9 @@ import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; +import android.graphics.Point; import android.graphics.Rect; -import android.os.IBinder; import android.view.View; -import android.view.WindowManager; -import android.view.WindowManagerImpl; import android.view.animation.DecelerateInterpolator; import com.android.launcher.R; @@ -39,6 +37,7 @@ public class DragView extends View { private int mRegistrationX; private int mRegistrationY; + private Point mDragVisualizeOffset = null; private Rect mDragRegion = null; private DragLayer mDragLayer = null; private boolean mHasDrawn = false; @@ -135,6 +134,14 @@ public class DragView extends View { return mDragRegion.height(); } + public void setDragVisualizeOffset(Point p) { + mDragVisualizeOffset = p; + } + + public Point getDragVisualizeOffset() { + return mDragVisualizeOffset; + } + public void setDragRegion(Rect r) { mDragRegion = r; } |