diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 4 | ||||
-rwxr-xr-x | src/com/android/camera/CaptureUI.java | 4 | ||||
-rw-r--r-- | src/com/android/camera/ui/OneUICameraControls.java | 4 |
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); |