summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2013-02-22 14:31:17 -0800
committerDoris Liu <tianliu@google.com>2013-02-22 15:44:02 -0800
commit67de663ca106c32cf0b1f4fdf676f0fb10c30b83 (patch)
treec95cf3a92369c336220530731112832a2c8ef81e /src/com
parent969fc02063b47fc2151a6fc6ef9af9793da4c08a (diff)
downloadandroid_packages_apps_Gallery2-67de663ca106c32cf0b1f4fdf676f0fb10c30b83.tar.gz
android_packages_apps_Gallery2-67de663ca106c32cf0b1f4fdf676f0fb10c30b83.tar.bz2
android_packages_apps_Gallery2-67de663ca106c32cf0b1f4fdf676f0fb10c30b83.zip
Release surface texture to fix gray camera preview
Bug: 8133672 Change-Id: Ie71c8fd1ea07a19eccf5bbd773054e095426fe80
Diffstat (limited to 'src/com')
-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 15f40461d..e244d6b88 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.