summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorzhuw <zhuw@codeaurora.org>2018-12-12 14:02:23 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-12-14 00:22:02 -0800
commiteb75ab74bf835896eec7882a08db10154efb0777 (patch)
treef40734a38a460c250ac6fdf3dfe6e9a35b693282 /src/com/android/camera/CaptureModule.java
parent07d7d91f8e6afca1cda50c6f0d63120518a26a57 (diff)
downloadandroid_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-xsrc/com/android/camera/CaptureModule.java3
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) {