Use a copy of surface control when creating window decoration
Currently, we are are passing in the surface control from
the transition directly when we create a window decoration. This surface
control is reused throughout the life cycle of the decoration; however,
the surface control is released when a transition is finished which is
causing an IllegalStateException.
With this change, the window decoration will be passed a copy of the
surface control which will only be released when the decoration is
closed.
Bug: 303160557
Test: manual testing
Change-Id: I42eee8051386e4a661dabebdf6d21b26d6d01acf
4 files changed