summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CameraSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/CameraSettings.java')
-rw-r--r--src/com/android/camera/CameraSettings.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java
index c861366..2d33b69 100644
--- a/src/com/android/camera/CameraSettings.java
+++ b/src/com/android/camera/CameraSettings.java
@@ -225,16 +225,9 @@ public class CameraSettings {
return;
}
- CharSequence[] entryValues = new CharSequence[2];
- for (int i = 0; i < mCameraInfo.length; ++i) {
- int index =
- (mCameraInfo[i].facing == CameraInfo.CAMERA_FACING_FRONT)
- ? CameraInfo.CAMERA_FACING_FRONT
- : CameraInfo.CAMERA_FACING_BACK;
- if (entryValues[index] == null) {
- entryValues[index] = "" + i;
- if (entryValues[((index == 1) ? 0 : 1)] != null) break;
- }
+ CharSequence[] entryValues = new CharSequence[numOfCameras];
+ for (int i = 0; i < numOfCameras; ++i) {
+ entryValues[i] = "" + i;
}
preference.setEntryValues(entryValues);
}