summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2013-06-05 14:26:53 -0700
committerJohn Reck <jreck@google.com>2013-06-05 14:27:19 -0700
commit9285dedd138709376b99d3948d563f896857723c (patch)
treeb5d8122dc978bf6de39c07a02fd3257e9f812e3b /src/com/android/gallery3d
parent4c400b2f79ff7b4b4f11f5b45326316ac7af075c (diff)
downloadandroid_packages_apps_Snap-9285dedd138709376b99d3948d563f896857723c.tar.gz
android_packages_apps_Snap-9285dedd138709376b99d3948d563f896857723c.tar.bz2
android_packages_apps_Snap-9285dedd138709376b99d3948d563f896857723c.zip
Fix graphical corruption due to tear down race
Bug: 9278945 Change-Id: I7594680322768f60eaed8a1037d139cbadf9706b
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r--src/com/android/gallery3d/ui/GLRootView.java3
1 files changed, 3 insertions, 0 deletions
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();