Skip to content

Commit

Permalink
am 35c8657: Merge "Remove android.hardware.Camera.CAMERA_ID_DEFAULT."…
Browse files Browse the repository at this point in the history
… into gingerbread

* commit '35c8657f8b2e031e60908a06152df530e6604657':
  Remove android.hardware.Camera.CAMERA_ID_DEFAULT.
  • Loading branch information
Wu-cheng Li authored and Android Git Automerger committed Nov 8, 2010
2 parents b72942e + 35c8657 commit c309fcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/com/android/camera/CameraSettings.java
Expand Up @@ -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,
Expand Down

0 comments on commit c309fcd

Please sign in to comment.