diff options
| -rw-r--r-- | services/core/java/com/android/server/wm/DragState.java | 7 | ||||
| -rw-r--r-- | services/core/java/com/android/server/wm/Session.java | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/wm/DragState.java b/services/core/java/com/android/server/wm/DragState.java index 7b0a8d7c5d0c..18798e52b121 100644 --- a/services/core/java/com/android/server/wm/DragState.java +++ b/services/core/java/com/android/server/wm/DragState.java @@ -360,8 +360,6 @@ class DragState { mCurrentX = x; mCurrentY = y; - final int myPid = Process.myPid(); - // Move the surface to the given touch if (SHOW_LIGHT_TRANSACTIONS) Slog.i( TAG_WM, ">>> OPEN TRANSACTION notifyMoveLw"); @@ -376,7 +374,10 @@ class DragState { if (SHOW_LIGHT_TRANSACTIONS) Slog.i( TAG_WM, "<<< CLOSE TRANSACTION notifyMoveLw"); } + notifyLocationLw(x, y); + } + void notifyLocationLw(float x, float y) { // Tell the affected window WindowState touchedWin = getTouchedWinAtPointLw(x, y); if (touchedWin == null) { @@ -392,6 +393,8 @@ class DragState { } } try { + final int myPid = Process.myPid(); + // have we dragged over a new window? if ((touchedWin != mTargetWindow) && (mTargetWindow != null)) { if (DEBUG_DRAG) { diff --git a/services/core/java/com/android/server/wm/Session.java b/services/core/java/com/android/server/wm/Session.java index 1b6957d9e554..ced7818f5e30 100644 --- a/services/core/java/com/android/server/wm/Session.java +++ b/services/core/java/com/android/server/wm/Session.java @@ -353,6 +353,8 @@ final class Session extends IWindowSession.Stub if (SHOW_LIGHT_TRANSACTIONS) Slog.i( TAG_WM, "<<< CLOSE TRANSACTION performDrag"); } + + mService.mDragState.notifyLocationLw(touchX, touchY); } return true; // success! |