summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureUI.java
diff options
context:
space:
mode:
authorCamera Software Integration <camswint@localhost>2016-11-28 22:17:41 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-28 22:17:41 -0800
commit1ac1654e76a15b1e0a871d0942900fd8d1bf88c5 (patch)
treed1ef384067d1a462ab6eb970f3c1ee56fc098a0a /src/com/android/camera/CaptureUI.java
parent3ef3c67fb0f74c36463fc197c1c79cda46fea453 (diff)
parent70790e941a1c23dc62b2bf06236cb4d8dde2bec9 (diff)
downloadandroid_packages_apps_Snap-1ac1654e76a15b1e0a871d0942900fd8d1bf88c5.tar.gz
android_packages_apps_Snap-1ac1654e76a15b1e0a871d0942900fd8d1bf88c5.tar.bz2
android_packages_apps_Snap-1ac1654e76a15b1e0a871d0942900fd8d1bf88c5.zip
Merge "SnapdragonCamera: Add ProMode" into camera.lnx.1.0-dev.1.0
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rw-r--r--src/com/android/camera/CaptureUI.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 88460b865..9b224ff81 100644
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -184,6 +184,7 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
private PauseButton mPauseButton;
private RotateImageView mMuteButton;
private ImageView mSeekbarToggleButton;
+ private View mProModeCloseButton;
int mPreviewWidth;
int mPreviewHeight;
@@ -283,6 +284,13 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
});
setMakeupButtonIcon();
mFlashButton = (FlashToggleButton) mRootView.findViewById(R.id.flash_button);
+ mProModeCloseButton = mRootView.findViewById(R.id.promode_close_button);
+ mProModeCloseButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ mSettingsManager.setValue(SettingsManager.KEY_SCENE_MODE, "" + SettingsManager.SCENE_MODE_AUTO_INT);
+ }
+ });
initFilterModeButton();
initSceneModeButton();
initSwitchCamera();
@@ -425,6 +433,12 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
}
}
+ public void initializeProMode(boolean promode) {
+ mCameraControls.setProMode(promode);
+ if (promode) mVideoButton.setVisibility(View.INVISIBLE);
+ else mVideoButton.setVisibility(View.VISIBLE);
+ }
+
// called from onResume but only the first time
public void initializeFirstTime() {
// Initialize shutter button.