summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2013-06-05 21:29:54 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-06-05 21:29:54 +0000
commita3bdd2935035548f121815b7c1f66e8f4f59fa85 (patch)
treef9821310e49f337967d0939ba266ad98c10b8dba /src/com/android/gallery3d
parent41c100e0dfb2a371c34eb9e9685aa6987d6bf9a6 (diff)
parent9285dedd138709376b99d3948d563f896857723c (diff)
downloadandroid_packages_apps_Snap-a3bdd2935035548f121815b7c1f66e8f4f59fa85.tar.gz
android_packages_apps_Snap-a3bdd2935035548f121815b7c1f66e8f4f59fa85.tar.bz2
android_packages_apps_Snap-a3bdd2935035548f121815b7c1f66e8f4f59fa85.zip
Merge "Fix graphical corruption due to tear down race" into gb-ub-photos-carlsbad
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();