summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureUI.java
diff options
context:
space:
mode:
authorpezhan <pezhan@codeaurora.org>2017-01-09 11:19:54 +0800
committerpezhan <pezhan@codeaurora.org>2017-01-11 15:20:31 +0800
commit326822d1e444da7b227be3c86815e3ee6eb6453d (patch)
tree09fa64a75d294bbd63faf5298d861197d5e30478 /src/com/android/camera/CaptureUI.java
parent15f6d966c807c371a12f68bf9f5f4e7447a9ba8e (diff)
downloadandroid_packages_apps_Snap-326822d1e444da7b227be3c86815e3ee6eb6453d.tar.gz
android_packages_apps_Snap-326822d1e444da7b227be3c86815e3ee6eb6453d.tar.bz2
android_packages_apps_Snap-326822d1e444da7b227be3c86815e3ee6eb6453d.zip
SnapdragonCamera:Fix [FR35432] BestPicture function lost.
Add dialog when saving selected BestPicture. Add "X" icon display beside camcorder icon to exit BestPicture mode. Add multiple selections(Three dots beside SAVE)and "X" icon. Add dialog when select "X" icon. Add overflow menu with multiple selections to chose "Save All" or "Delete All" when click overflow menu. Add click for "Save All" to save all 1o pictures. Add click for "Delete All" to pop delete all dialog. Change-Id: I59cdad0f77fde616ea34db4d9d186d322285e394 CRs-Fixed: 1102814, 1102807, 1099428
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rwxr-xr-xsrc/com/android/camera/CaptureUI.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 8bbbf1753..85d044eeb 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);
}
}