summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWei Huang <weih@google.com>2011-11-17 15:14:17 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-11-17 15:14:17 -0800
commit4d29bb4e32a2c0b1f58659e133caf2beaede8f55 (patch)
tree59a5ebcb98149de5399832084b6525a44de1cc23 /src
parent10a42f4b16bf43c686f10bfac5d879b46421fbb0 (diff)
parent0ca031ca9fef394f27b7cc9722ffc5a198cb964e (diff)
downloadLegacyCamera-4d29bb4e32a2c0b1f58659e133caf2beaede8f55.zip
LegacyCamera-4d29bb4e32a2c0b1f58659e133caf2beaede8f55.tar.gz
LegacyCamera-4d29bb4e32a2c0b1f58659e133caf2beaede8f55.tar.bz2
Merge "Rotate priority indicators according to the device orientation." into ics-mr1
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/Camera.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index f0c1f30..6bded2c 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -175,6 +175,8 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
private ImageView mSceneIndicator;
private ImageView mWhiteBalanceIndicator;
private ImageView mFocusIndicator;
+ // A view group that contains all the small indicators.
+ private Rotatable mOnScreenIndicators;
// We use a thread in ImageSaver to do the work of saving images and
// generating thumbnails. This reduces the shot-to-shot time.
@@ -647,10 +649,12 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
}
if (Parameters.FLASH_MODE_AUTO.equals(value)) {
mFlashIndicator.setImageResource(R.drawable.ic_indicators_landscape_flash_auto);
+ mFlashIndicator.setVisibility(View.VISIBLE);
} else if (Parameters.FLASH_MODE_ON.equals(value)) {
mFlashIndicator.setImageResource(R.drawable.ic_indicators_landscape_flash_on);
+ mFlashIndicator.setVisibility(View.VISIBLE);
} else if (Parameters.FLASH_MODE_OFF.equals(value)) {
- mFlashIndicator.setImageResource(R.drawable.ic_indicators_landscape_flash_off);
+ mFlashIndicator.setVisibility(View.GONE);
}
}
@@ -1178,6 +1182,7 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
}
mZoomControl = (ZoomControl) findViewById(R.id.zoom_control);
+ mOnScreenIndicators = (Rotatable) findViewById(R.id.on_screen_indicators);
mLocationManager = new LocationManager(this, this);
mBackCameraId = CameraHolder.instance().getBackCameraId();
@@ -1306,7 +1311,7 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
private void setOrientationIndicator(int orientation) {
Rotatable[] indicators = {mThumbnailView, mModePicker, mSharePopup,
mIndicatorControlContainer, mZoomControl, mFocusAreaIndicator, mFaceView,
- mReviewCancelButton, mReviewDoneButton, mRotateDialog};
+ mReviewCancelButton, mReviewDoneButton, mRotateDialog, mOnScreenIndicators};
for (Rotatable indicator : indicators) {
if (indicator != null) indicator.setOrientation(orientation);
}