summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.cpp
diff options
context:
space:
mode:
authorMiranda Kephart <mkephart@google.com>2020-11-16 11:22:13 -0500
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-02-09 01:24:02 +0000
commit02d2eb5204eecfeba7aeb24f3abce9e2e9bba9f0 (patch)
tree0c340ff4e4546910fdfe67dd15549932a94198c0 /libs/hwui/renderthread/RenderThread.cpp
parent75419418cfd2f47439d0f65418f4a771cc58d14b (diff)
[DO NOT MERGE] Close screenshot process on user switched
Currently, we keep the process up even if the user switches, meaning that in some cases (if the user is switched while the screenshot UI is up) we will save images to the wrong profile. This change makes ScreenshotHelper listen for user switches and close the screenshot service, so that a new screenshot is guaranteed to be constructed with the correct user's context. Bug: 170474245 Fix: 170474245 Test: manual -- verified bad state occurs if user switches within the timeout period, ensured that screenshots work immediately after switching with this change. Change-Id: I9d32d0928e6c2bda161d04555438d0dd7afef0ba (cherry picked from commit 7ef1a5dd1506075507412626f2533283d9520144) (cherry picked from commit 05f7aef1b07665aa10aab535613a8457296279a3)
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
0 files changed, 0 insertions, 0 deletions