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

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

Merge "Do not use CAMERA_ID_DEFAULT because it is removed."

parents 0f2d6c69 76f15bcb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ public class CamcorderProfile
     * @see #get(int, int)
     */
    public static CamcorderProfile get(int quality) {
        return get(android.hardware.Camera.CAMERA_ID_DEFAULT, quality);
        return get(0, quality);
    }

    /**
@@ -240,7 +240,7 @@ public class CamcorderProfile
     * @param quality the target quality level for the camcorder profile
     */
    public static boolean hasProfile(int quality) {
        return hasProfile(android.hardware.Camera.CAMERA_ID_DEFAULT, quality);
        return hasProfile(0, quality);
    }

    /**