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

Commit 6520f173 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge changes from topic "presubmit-am-68408850f2c84138b668069c6e3a2e5a" into tm-mainline-prod

* changes:
  [automerge] ActivityRecordInputSink: Ensure timely release of SurfaceControl 2p: 51ae378d
  ActivityRecordInputSink: Ensure timely release of SurfaceControl
parents ca183291 460dd83d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3967,6 +3967,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        } else {
            onRemovedFromDisplay();
        }
        mActivityRecordInputSink.releaseSurfaceControl();

        super.removeImmediately();
    }

+7 −0
Original line number Diff line number Diff line
@@ -99,4 +99,11 @@ class ActivityRecordInputSink {
        return inputWindowHandle;
    }

    void releaseSurfaceControl() {
        if (mSurfaceControl != null) {
            mSurfaceControl.release();
            mSurfaceControl = null;
        }
    }

}