Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit facc8ce1 authored by Wu-cheng Li's avatar Wu-cheng Li
Browse files

Mention device policay manager in Camera.open javadoc.

bug:4185309
Change-Id: I733654a0be1953851dac7686c9c38e7af8f1d73a
parent ed2ea731
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -216,7 +216,9 @@ public class Camera {
     *     {@link #getNumberOfCameras()}-1.
     * @return a new Camera object, connected, locked and ready for use.
     * @throws RuntimeException if connection to the camera service fails (for
     *     example, if the camera is in use by another process).
     *     example, if the camera is in use by another process or device policy
     *     manager has disabled the camera).
     * @see android.app.admin.DevicePolicyManager#getCameraDisabled(android.content.ComponentName)
     */
    public static Camera open(int cameraId) {
        return new Camera(cameraId);