summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-12-27 03:29:31 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-12-27 03:29:31 -0800
commit01572a8cf097eb4e385cd2c126c4c85f8ceee77b (patch)
tree11b10787233611fbd8788133d9ac885f2bb93080 /src
parent443f1ffe54ee3cb511676940272f45c15a1ae34e (diff)
parent15ec0c67af2f3740bbdbbdb212b1e46d85b4710f (diff)
downloadandroid_packages_apps_Snap-01572a8cf097eb4e385cd2c126c4c85f8ceee77b.tar.gz
android_packages_apps_Snap-01572a8cf097eb4e385cd2c126c4c85f8ceee77b.tar.bz2
android_packages_apps_Snap-01572a8cf097eb4e385cd2c126c4c85f8ceee77b.zip
Merge "SnapdragonCamera: Fix CAF in Manual Promode"
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java4
-rwxr-xr-xsrc/com/android/camera/CaptureUI.java4
-rw-r--r--src/com/android/camera/ui/OneUICameraControls.java4
3 files changed, 11 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index c4810557e..ef62333e4 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -103,6 +103,7 @@ import com.android.camera.imageprocessor.filter.StillmoreFilter;
import com.android.camera.imageprocessor.filter.UbifocusFilter;
import com.android.camera.ui.CountDownView;
import com.android.camera.ui.ModuleSwitcher;
+import com.android.camera.ui.ProMode;
import com.android.camera.ui.RotateTextToast;
import com.android.camera.ui.TrackingFocusRenderer;
import com.android.camera.util.ApiHelper;
@@ -1996,7 +1997,8 @@ public class CaptureModule implements CameraModule, PhotoController,
mControlAFMode = CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE;
applyFlash(mPreviewRequestBuilder[id], id);
applySettingsForUnlockExposure(mPreviewRequestBuilder[id], id);
- setAFModeToPreview(id, mControlAFMode);
+ setAFModeToPreview(id, mUI.getCurrentProMode() == ProMode.MANUAL_MODE ?
+ CaptureRequest.CONTROL_AF_MODE_OFF : mControlAFMode);
mTakingPicture[id] = false;
if (id == getMainCameraId()) {
mActivity.runOnUiThread(new Runnable() {
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 364459cb7..47ffc1435 100755
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -1786,4 +1786,8 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
return mVideoButton;
}
+ public int getCurrentProMode() {
+ return mCameraControls.getPromode();
+ }
+
}
diff --git a/src/com/android/camera/ui/OneUICameraControls.java b/src/com/android/camera/ui/OneUICameraControls.java
index 236a49243..0d503502e 100644
--- a/src/com/android/camera/ui/OneUICameraControls.java
+++ b/src/com/android/camera/ui/OneUICameraControls.java
@@ -558,6 +558,10 @@ public class OneUICameraControls extends RotatableLayout {
resetProModeIcons();
}
+ public int getPromode() {
+ return mProMode != null ? mProMode.getMode() : -99;
+ }
+
private void resetProModeIcons() {
mExposureText.setSelected(false);
mManualText.setSelected(false);