diff options
author | Naomi Musgrave <nmusgrave@google.com> | 2021-08-27 17:51:34 +0100 |
---|---|---|
committer | Naomi Musgrave <nmusgrave@google.com> | 2021-09-01 10:29:44 +0100 |
commit | cb50daa74cf2718c21ca12e240ecae3bb6a382de (patch) | |
tree | 54e577455125a259b75fd2f351a7b370aa92c406 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 9541f4a48a14786ba4a6afe53e87fef32f410157 (diff) |
[MediaProjection] Store WindowContext in field
When WindowContext is a local variable for starting layer mirroring,
the variable is eventually garbage collected. When this occurs
when MediaProjection is still running, then DisplayContent
fails to transform the captured content from
onConfigurationChanged.
The destroyed WindowContext triggers unregistering the
WindowContainerListener. Even though the WindowToken is
still being used by DisplayContent, DisplayContent is no
longer able to retrieve the WindowContainer associated
with the WindowToken. The WindowToken set when layer
mirroring begins is used to indicate the layer of
the hierarchy to mirror.
Bug: 197579637
Test: Manual
Change-Id: Ib8a971d1a85ebfe9db59d9267cc387f4f4d15991
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions