summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/PhotoModule.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index 15f4046..e244d6b 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -1586,10 +1586,9 @@ public class PhotoModule
mCountDownView.cancelCountDown();
// Close the camera now because other activities may need to use it.
closeCamera();
- if (mSurfaceTexture != null) {
- ((CameraScreenNail) mActivity.mCameraScreenNail).releaseSurfaceTexture();
- mSurfaceTexture = null;
- }
+ // Release surface texture.
+ ((CameraScreenNail) mActivity.mCameraScreenNail).releaseSurfaceTexture();
+ mSurfaceTexture = null;
resetScreenOn();
// Clear UI.