summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorAbhijit Trivedi <abhijitt@quicinc.com>2018-12-19 13:47:12 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-12-19 13:47:12 -0800
commit79981a1b2160fc7249f0c900a490bbf083d5556c (patch)
treea46766bec24f7ae8b7179486104d5986438ef997 /src/com/android/camera/CaptureModule.java
parent407ac280645f0d250f85b66c956840e7178a10d1 (diff)
parenteb75ab74bf835896eec7882a08db10154efb0777 (diff)
downloadandroid_packages_apps_Snap-79981a1b2160fc7249f0c900a490bbf083d5556c.tar.gz
android_packages_apps_Snap-79981a1b2160fc7249f0c900a490bbf083d5556c.tar.bz2
android_packages_apps_Snap-79981a1b2160fc7249f0c900a490bbf083d5556c.zip
Merge "fix force close when TAF before session configed" into camera-SnapdragonCamera.lnx.2.0
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 26879ac82..d819634fb 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -3847,7 +3847,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) {