Merge "[wm]: Fixed TaskPositioner leak" into qt-dev

am: 050d6df74c

Change-Id: Ife9c5d5da6fae4d40183a6a56a71165001bf6674
This commit is contained in:
yj81.kwon
2019-05-20 04:54:49 -07:00
committed by android-build-merger
7 changed files with 69 additions and 3 deletions

View File

@@ -254,6 +254,8 @@ interface IWindowSession {
*/
boolean startMovingTask(IWindow window, float startX, float startY);
void finishMovingTask(IWindow window);
void updatePointerIcon(IWindow window);
/**

View File

@@ -25519,6 +25519,21 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
return false;
}
/**
* Finish a window move task.
* @hide
*/
public void finishMovingTask() {
if (ViewDebug.DEBUG_POSITIONING) {
Log.d(VIEW_LOG_TAG, "finishMovingTask");
}
try {
mAttachInfo.mSession.finishMovingTask(mAttachInfo.mWindow);
} catch (RemoteException e) {
Log.e(VIEW_LOG_TAG, "Unable to finish moving", e);
}
}
/**
* Handles drag events sent by the system following a call to
* {@link android.view.View#startDragAndDrop(ClipData,DragShadowBuilder,Object,int)