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

Commit 25b93ade authored by Wu-cheng Li's avatar Wu-cheng Li Committed by Android (Google) Code Review
Browse files

Merge "Mention device policay manager in Camera.open javadoc."

parents 84a1b9e1 facc8ce1
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);