Skip to content
Commit a7c5cc50 authored by Matt Casey's avatar Matt Casey
Browse files

Only honor passed-in userid value if work profile flag enabled

Previously work profile screenshots from overview would get saved to
work profile even if the feature wasn't enabled (downstream code assumed
that the userId would only be wp if the feature was enabled).

This CL removes that assumption, only saving to a different profile if
the flag is enabled.

Bug: 255971910
Test: Work and personal profile screenshots from overview and key chord
      with the flags enabled and disabled.
Test: atest TakeScreenshotServiceTest
Test: atest ImageExporterTest
Change-Id: If4164373e28b920ef4bea16902ba3455f09b6893
parent 7be703bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment