diff options
| author | 2022-09-21 11:49:47 -0400 | |
|---|---|---|
| committer | 2022-09-22 14:20:38 +0000 | |
| commit | 9f8f1fd9a7f22db4c89fbdf0b03885eac70e327f (patch) | |
| tree | e6d18126ea974647cf226076057768ee88b7ffad /libs/androidfw/StringPool.cpp | |
| parent | 6c137496fe6ffecf7d1f319f5de9fda50930085b (diff) | |
Clean up leaked screenshot connections
If a subsequent screenshot is taken after we bind to the screenshot
service, but before we get the onServiceConnected callback, we
leak the connection to the service, preventing it from ever getting
shut down. Fix this by unbinding the old connection before connecting
with the new one.
Bug: 242862442
Fix: 242862442
Test: forced DisplayPolicy to take two consecutive screenshots
Change-Id: Iffb62170266a2c1bb332bfb416f0f5e19c5236fb
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions