diff options
author | Camera Software Integration <camswint@localhost> | 2017-01-17 00:22:46 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-17 00:22:46 -0800 |
commit | bc029c01d11d6ce3634ec3bc26b0e02b3092bed2 (patch) | |
tree | a4610bcc9708669e9b27c220de7dcf6809d2a432 /src/com/android/camera/CaptureUI.java | |
parent | 108188d9fd71873aa84aa6c5e1e439ed10190f82 (diff) | |
parent | 326822d1e444da7b227be3c86815e3ee6eb6453d (diff) | |
download | android_packages_apps_Snap-bc029c01d11d6ce3634ec3bc26b0e02b3092bed2.tar.gz android_packages_apps_Snap-bc029c01d11d6ce3634ec3bc26b0e02b3092bed2.tar.bz2 android_packages_apps_Snap-bc029c01d11d6ce3634ec3bc26b0e02b3092bed2.zip |
Merge "SnapdragonCamera:Fix [FR35432] BestPicture function lost." into camera.lnx.1.0-dev.1.0
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rwxr-xr-x | src/com/android/camera/CaptureUI.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java index e8c3c6b07..2ef89abdf 100755 --- a/src/com/android/camera/CaptureUI.java +++ b/src/com/android/camera/CaptureUI.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved. * Not a Contribution. * * Copyright (C) 2012 The Android Open Source Project @@ -101,6 +101,7 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, private static final int FILTER_MENU_ON = 2; private static final int ANIMATION_DURATION = 300; private static final int CLICK_THRESHOLD = 200; + private static final int AUTOMATIC_MODE = 0; private CameraActivity mActivity; private View mRootView; private View mPreviewCover; @@ -199,6 +200,7 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, private RotateLayout mSceneModeLabelRect; private LinearLayout mSceneModeLabelView; private TextView mSceneModeName; + private ImageView mExitBestMode; private ImageView mSceneModeLabelCloseIcon; private AlertDialog mSceneModeInstructionalDialog = null; @@ -280,6 +282,7 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, mRenderOverlay = (RenderOverlay) mRootView.findViewById(R.id.render_overlay); mShutterButton = (ShutterButton) mRootView.findViewById(R.id.shutter_button); mVideoButton = (ImageView) mRootView.findViewById(R.id.video_button); + mExitBestMode = (ImageView) mRootView.findViewById(R.id.exit_best_mode); mFilterModeSwitcher = mRootView.findViewById(R.id.filter_mode_switcher); mSceneModeSwitcher = mRootView.findViewById(R.id.scene_mode_switcher); mFrontBackSwitcher = mRootView.findViewById(R.id.front_back_switcher); @@ -362,6 +365,14 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, } }); + mExitBestMode.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + SettingsManager.getInstance().setValueIndex(SettingsManager.KEY_SCENE_MODE, + AUTOMATIC_MODE); + } + }); + RotateImageView muteButton = (RotateImageView) mRootView.findViewById(R.id.mute_button); muteButton.setVisibility(View.GONE); @@ -840,8 +851,10 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, if ( index > 0 && index < sceneModeNameArray.length ) { mSceneModeName.setText(sceneModeNameArray[index]); mSceneModeLabelRect.setVisibility(View.VISIBLE); + mExitBestMode.setVisibility(View.VISIBLE); }else{ mSceneModeLabelRect.setVisibility(View.GONE); + mExitBestMode.setVisibility(View.GONE); } } |