summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/ui/PreparePageFadeoutTexture.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/ui/PreparePageFadeoutTexture.java b/src/com/android/gallery3d/ui/PreparePageFadeoutTexture.java
index 74be72255..290657ade 100644
--- a/src/com/android/gallery3d/ui/PreparePageFadeoutTexture.java
+++ b/src/com/android/gallery3d/ui/PreparePageFadeoutTexture.java
@@ -69,12 +69,12 @@ public class PreparePageFadeoutTexture implements OnGLIdleListener {
if (task.isCancelled()) return;
GLRoot root = activity.getGLRoot();
RawTexture texture = null;
- root.unlockRenderThread();
+ root.lockRenderThread();
try {
root.addOnGLIdleListener(task);
texture = task.get();
} finally {
- root.lockRenderThread();
+ root.unlockRenderThread();
}
if (texture == null) {