diff options
author | Doris Liu <tianliu@google.com> | 2013-02-22 14:31:17 -0800 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2013-02-22 15:44:02 -0800 |
commit | b8cf250c6351cd96f069fd16087db5e7b0f6b1d6 (patch) | |
tree | 7f52149f2437030267bd0c0ff9ad3d695693e70c | |
parent | d1d32ad29360992e9fad3615e2dda4ab47112aba (diff) | |
download | android_packages_apps_Snap-b8cf250c6351cd96f069fd16087db5e7b0f6b1d6.tar.gz android_packages_apps_Snap-b8cf250c6351cd96f069fd16087db5e7b0f6b1d6.tar.bz2 android_packages_apps_Snap-b8cf250c6351cd96f069fd16087db5e7b0f6b1d6.zip |
Release surface texture to fix gray camera preview
Bug: 8133672
Change-Id: Ie71c8fd1ea07a19eccf5bbd773054e095426fe80
-rw-r--r-- | src/com/android/camera/PhotoModule.java | 7 |
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. |