diff options
author | zhuw <zhuw@codeaurora.org> | 2018-12-12 14:02:23 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-12-14 00:22:02 -0800 |
commit | eb75ab74bf835896eec7882a08db10154efb0777 (patch) | |
tree | f40734a38a460c250ac6fdf3dfe6e9a35b693282 /src/com/android/camera/CaptureModule.java | |
parent | 07d7d91f8e6afca1cda50c6f0d63120518a26a57 (diff) | |
download | android_packages_apps_Snap-eb75ab74bf835896eec7882a08db10154efb0777.tar.gz android_packages_apps_Snap-eb75ab74bf835896eec7882a08db10154efb0777.tar.bz2 android_packages_apps_Snap-eb75ab74bf835896eec7882a08db10154efb0777.zip |
fix force close when TAF before session configed
don't trigger TAF before session configed
Change-Id: Idfa19338b84fb46bb0ea37300d271f6357b0da11
CRs-Fixed:2364579
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 13e5ee8af..634617e31 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -3845,7 +3845,8 @@ public class CaptureModule implements CameraModule, PhotoController, @Override public void onSingleTapUp(View view, int x, int y) { if (mPaused || !mCamerasOpened || !mFirstTimeInitialized || !mAutoFocusRegionSupported - || !mAutoExposureRegionSupported || !isTouchToFocusAllowed()) { + || !mAutoExposureRegionSupported || !isTouchToFocusAllowed() + || mCaptureSession[getMainCameraId()] == null) { return; } if (DEBUG) { |