From 9285dedd138709376b99d3948d563f896857723c Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 5 Jun 2013 14:26:53 -0700 Subject: Fix graphical corruption due to tear down race Bug: 9278945 Change-Id: I7594680322768f60eaed8a1037d139cbadf9706b --- src/com/android/gallery3d/ui/GLRootView.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com/android/gallery3d') diff --git a/src/com/android/gallery3d/ui/GLRootView.java b/src/com/android/gallery3d/ui/GLRootView.java index f00bd543c..dc898d83d 100644 --- a/src/com/android/gallery3d/ui/GLRootView.java +++ b/src/com/android/gallery3d/ui/GLRootView.java @@ -409,6 +409,9 @@ public class GLRootView extends GLSurfaceView rotateCanvas(-mCompensation); if (mContentView != null) { mContentView.render(mCanvas); + } else { + // Make sure we always draw something to prevent displaying garbage + mCanvas.clearBuffer(); } mCanvas.restore(); -- cgit v1.2.3