summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2016-12-01 14:31:17 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-30 22:32:41 -0800
commit693ea9084f0e766b287a4ede565bbebb865ed127 (patch)
tree1fac211bde95681c36ac4d12690f701ccc389bcf
parent7fdeb80f7fb4e7077a306bf0119db884a3a0d7de (diff)
downloadandroid_packages_apps_Snap-693ea9084f0e766b287a4ede565bbebb865ed127.tar.gz
android_packages_apps_Snap-693ea9084f0e766b287a4ede565bbebb865ed127.tar.bz2
android_packages_apps_Snap-693ea9084f0e766b287a4ede565bbebb865ed127.zip
SnapdragonCamera:closing sequence improvement
when this is any camera with errors, invoke closeCamera to close them in sequence, do not close the one with errors first. Change-Id: I5cb2c206c16535f4a823c3a5545539cdbed5b6c7 CRs-Fixed: 1095549
-rwxr-xr-x[-rw-r--r--]src/com/android/camera/CaptureModule.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index c45496c1f..134df9d95 100644..100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -535,8 +535,6 @@ public class CaptureModule implements CameraModule, PhotoController,
public void onError(CameraDevice cameraDevice, int error) {
int id = Integer.parseInt(cameraDevice.getId());
Log.e(TAG, "onError " + id + " " + error);
- cameraDevice.close();
- mCameraDevice[id] = null;
mCameraOpenCloseLock.release();
mCamerasOpened = false;
if (null != mActivity) {