diff options
author | Cheng-Ru Lin <owenlin@google.com> | 2009-10-01 00:34:41 +0800 |
---|---|---|
committer | Cheng-Ru Lin <owenlin@google.com> | 2009-10-01 08:36:13 +0800 |
commit | 25156f0e1bb921d3d8f7f5cc51e141522533b502 (patch) | |
tree | 9676c3338317ea093dc4d480654d7000fe14bf41 /src/com/android/camera/Camera.java | |
parent | b7c32e2f8ef5b9e2a77c2b942be0df0852090f22 (diff) | |
download | LegacyCamera-25156f0e1bb921d3d8f7f5cc51e141522533b502.zip LegacyCamera-25156f0e1bb921d3d8f7f5cc51e141522533b502.tar.gz LegacyCamera-25156f0e1bb921d3d8f7f5cc51e141522533b502.tar.bz2 |
Add indicator for focus, white balance, and scene mode.
Change-Id: Iead8a7a28aeaa07210fd56ecac1f6f6a74fee155
Diffstat (limited to 'src/com/android/camera/Camera.java')
-rw-r--r-- | src/com/android/camera/Camera.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index ae00df8..a7f40dd 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -99,8 +99,8 @@ public class Camera extends Activity implements View.OnClickListener, private static final int SCREEN_DELAY = 2 * 60 * 1000; private static final int FOCUS_BEEP_VOLUME = 100; - private static final String WHITE_BALANCE_ON = "on"; - private static final String WHITE_BALANCE_OFF = "off"; + private static final String SCENE_MODE_ON = "on"; + private static final String SCENE_MODE_OFF = "off"; private double mZoomValue; // The current zoom value. private double mZoomStep; @@ -144,6 +144,7 @@ public class Camera extends Activity implements View.OnClickListener, private IconIndicator mFlashIndicator; private IconIndicator mFocusIndicator; private IconIndicator mWhitebalanceIndicator; + private IconIndicator mSceneModeIndicator; private ToneGenerator mFocusToneGenerator; private ZoomButtonsController mZoomButtons; private GestureDetector mGestureDetector; @@ -926,6 +927,7 @@ public class Camera extends Activity implements View.OnClickListener, mFlashIndicator = (IconIndicator) findViewById(R.id.flash_icon); mFocusIndicator = (IconIndicator) findViewById(R.id.focus_icon); + mSceneModeIndicator = (IconIndicator) findViewById(R.id.scenemode_icon); mWhitebalanceIndicator = (IconIndicator) findViewById(R.id.whitebalance_icon); @@ -1726,16 +1728,18 @@ public class Camera extends Activity implements View.OnClickListener, // We post the runner because this function can be called from // non-UI thread (i.e., startPreviewThread). - final String finalWhiteBalance = - Parameters.WHITE_BALANCE_AUTO.equals(whiteBalance) - ? WHITE_BALANCE_OFF - : WHITE_BALANCE_ON; + final String finalWhiteBalance = whiteBalance; final String finalFlashMode = flashMode; + final String finalSceneMode = + Parameters.SCENE_MODE_AUTO.equals(whiteBalance) + ? SCENE_MODE_OFF + : SCENE_MODE_ON; mHandler.post(new Runnable() { public void run() { mFocusIndicator.setMode(mFocusMode); mWhitebalanceIndicator.setMode(finalWhiteBalance); + mSceneModeIndicator.setMode(finalSceneMode); mFlashIndicator.setMode(finalFlashMode); } }); |