Skip to content
Commit afc6a41e authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

Camera quick affordance respects device policy.

If the device admin policy disables the camera, neither the stills nor
the video camera quick affordances are available. If stills one also
respects the "secure camera" disablement flag, which the the video one
does not need to, because it always requires an unlock to access the
video camera (due to a missing camera API).

Bug: 268218507
Test: unit tests added
Test: temporarily faked DevicePolicyManager API and manually verified
that the camera and video camera options do not show up in wallpaper
picker.

Change-Id: Ia5b68283a25bc686ab11258a4b55b001fabcf562
parent d3d710e8
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