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

Commit d3fbc898 authored by Patrick Williams's avatar Patrick Williams Committed by Android (Google) Code Review
Browse files

Merge "Revert "Check if WindowInfosListener is present during remove"" into udc-dev

parents 4b20f921 4854af5f
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -62,10 +62,6 @@ status_t WindowInfosListenerReporter::removeWindowInfosListener(
    status_t status = OK;
    status_t status = OK;
    {
    {
        std::scoped_lock lock(mListenersMutex);
        std::scoped_lock lock(mListenersMutex);
        if (mWindowInfosListeners.find(windowInfosListener) == mWindowInfosListeners.end()) {
            return status;
        }

        if (mWindowInfosListeners.size() == 1) {
        if (mWindowInfosListeners.size() == 1) {
            binder::Status s = surfaceComposer->removeWindowInfosListener(this);
            binder::Status s = surfaceComposer->removeWindowInfosListener(this);
            status = statusTFromBinderStatus(s);
            status = statusTFromBinderStatus(s);