summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/Camera.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/Camera.java')
-rw-r--r--src/com/android/camera/Camera.java34
1 files changed, 9 insertions, 25 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index 6d77b2a..aef4ac6 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -44,7 +44,6 @@ import android.hardware.Camera.Size;
import android.location.Location;
import android.location.LocationManager;
import android.location.LocationProvider;
-import android.media.AudioManager;
import android.media.CameraProfile;
import android.media.ToneGenerator;
import android.net.Uri;
@@ -68,12 +67,10 @@ import android.view.OrientationEventListener;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
-import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.AnimationUtils;
import android.widget.Button;
-import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
@@ -1098,27 +1095,14 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
mIndicatorControl = (IndicatorControl) findViewById(R.id.indicator_control);
if (mIndicatorControl == null) return;
loadCameraPreferences();
- final String[] SETTING_KEYS, OTHER_SETTING_KEYS;
- if (Util.isTabletUI()) {
- SETTING_KEYS = new String[] {
- CameraSettings.KEY_FLASH_MODE,
- CameraSettings.KEY_WHITE_BALANCE};
- OTHER_SETTING_KEYS = new String[] {
- CameraSettings.KEY_SCENE_MODE,
- CameraSettings.KEY_RECORD_LOCATION,
- CameraSettings.KEY_FOCUS_MODE,
- CameraSettings.KEY_EXPOSURE,
- CameraSettings.KEY_PICTURE_SIZE};
- } else {
- SETTING_KEYS = new String[] {
- CameraSettings.KEY_WHITE_BALANCE,
- CameraSettings.KEY_SCENE_MODE};
- OTHER_SETTING_KEYS = new String[] {
- CameraSettings.KEY_EXPOSURE,
- CameraSettings.KEY_FOCUS_MODE,
- CameraSettings.KEY_PICTURE_SIZE,
- CameraSettings.KEY_RECORD_LOCATION};
- }
+ final String[] SETTING_KEYS = {
+ CameraSettings.KEY_WHITE_BALANCE,
+ CameraSettings.KEY_SCENE_MODE};
+ final String[] OTHER_SETTING_KEYS = {
+ CameraSettings.KEY_RECORD_LOCATION,
+ CameraSettings.KEY_FOCUS_MODE,
+ CameraSettings.KEY_EXPOSURE,
+ CameraSettings.KEY_PICTURE_SIZE};
mIndicatorControl.initialize(this, mPreferenceGroup,
CameraSettings.KEY_FLASH_MODE, SETTING_KEYS, OTHER_SETTING_KEYS);
mIndicatorControl.setListener(this);
@@ -2173,7 +2157,7 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
mIndicatorControl.dismissSettingPopup();
CameraSettings.restorePreferences(Camera.this, mPreferences,
mParameters);
- initializeIndicatorControl();
+ mIndicatorControl.reloadPreferences();
onSharedPreferenceChanged();
}
}