diff options
author | Miranda Kephart <mkephart@google.com> | 2020-11-16 11:22:13 -0500 |
---|---|---|
committer | Miranda Kephart <mkephart@google.com> | 2020-11-16 12:48:45 -0500 |
commit | 7ef1a5dd1506075507412626f2533283d9520144 (patch) | |
tree | 7f71e77bbfbfd6c56f0d6598b996e682e0ba37c0 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 66daa1f531856851ce6da9b02b07d6ebfa0c540e (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions