Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23915d40 authored by Bryce Lee's avatar Bryce Lee Committed by android-build-merger
Browse files

Merge branch 'master' of...

Merge branch 'master' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base
parents 62192ccd 64677dba
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -265,21 +265,27 @@ class DragState {
    }

    void broadcastDragEndedLw() {
        final int myPid = Process.myPid();

        if (WindowManagerService.DEBUG_DRAG) {
            Slog.d(WindowManagerService.TAG, "broadcasting DRAG_ENDED");
        }
        for (WindowState ws : mNotifiedWindows) {
            DragEvent evt = DragEvent.obtain(DragEvent.ACTION_DRAG_ENDED,
                    0, 0, null, null, null, null, mDragResult);
        for (WindowState ws: mNotifiedWindows) {
            try {
                ws.mClient.dispatchDragEvent(evt);
            } catch (RemoteException e) {
                Slog.w(WindowManagerService.TAG, "Unable to drag-end window " + ws);
            }
            // if the current window is in the same process,
            // the dispatch has already recycled the event
            if (myPid != ws.mSession.mPid) {
                evt.recycle();
            }
        }
        mNotifiedWindows.clear();
        mDragInProgress = false;
        evt.recycle();
    }

    void endDragLw() {