Do not use CAMERA_ID_DEFAULT because it is removed.
bug:3173302 Change-Id: I360e55f2665b2e121c8cf017e17c4cb4dd181e88
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user