Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

am 35c8657: Merge "Remove android.hardware.Camera.CAMERA_ID_DEFAULT."…

… into gingerbread

* commit '35c8657f8b2e031e60908a06152df530e6604657':
  Remove android.hardware.Camera.CAMERA_ID_DEFAULT.
  • Loading branch information...
commit c309fcde67648ae483cab117a956ce11cf065ffd 2 parents b72942e + 35c8657
Wu-cheng Li authored Android Git Automerger committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/com/android/camera/CameraSettings.java
View
3  src/com/android/camera/CameraSettings.java
@@ -380,8 +380,7 @@ public static int getVidoeDurationInMillis(String quality) {
}
public static int readPreferredCameraId(SharedPreferences pref) {
- String id = Integer.toString(android.hardware.Camera.CAMERA_ID_DEFAULT);
- return Integer.parseInt(pref.getString(KEY_CAMERA_ID, id));
+ return Integer.parseInt(pref.getString(KEY_CAMERA_ID, "0"));
}
public static void writePreferredCameraId(SharedPreferences pref,
Please sign in to comment.
Something went wrong with that request. Please try again.