diff options
author | John Reck <jreck@google.com> | 2012-10-01 15:34:52 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-01 15:34:53 -0700 |
commit | c4f4569dba260d85bbed210c6dc0b646f63b4344 (patch) | |
tree | 3e94810e8fa0c9511973384c9537e0ee1eded73a | |
parent | fa434b0ece14ed98eb0e25d3a13374720d641709 (diff) | |
parent | 7a02f1d1c0b8e5e3805068f08d6e7ed8ff44685d (diff) | |
download | android_packages_apps_Snap-c4f4569dba260d85bbed210c6dc0b646f63b4344.tar.gz android_packages_apps_Snap-c4f4569dba260d85bbed210c6dc0b646f63b4344.tar.bz2 android_packages_apps_Snap-c4f4569dba260d85bbed210c6dc0b646f63b4344.zip |
Merge "Remove OnFrameAvailableListener in tear down" into gb-ub-photos-arches
-rw-r--r-- | src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java b/src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java index ee5fe3dcb..1930e3877 100644 --- a/src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java +++ b/src/com/android/gallery3d/ui/SurfaceTextureScreenNail.java @@ -60,6 +60,7 @@ public abstract class SurfaceTextureScreenNail implements ScreenNail, @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH) private static void releaseSurfaceTexture(SurfaceTexture st) { + st.setOnFrameAvailableListener(null); if (ApiHelper.HAS_RELEASE_SURFACE_TEXTURE) { st.release(); } |