summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2013-05-20 15:21:05 -0700
committerDoris Liu <tianliu@google.com>2013-05-20 15:21:05 -0700
commitf22ed280bae246a4b9ce31e5fada68a30f211aed (patch)
tree41b0a6c7dec45c8aaaee5d5366a2b5f7901c60ed /src/com/android/gallery3d
parentd165d93679ba8d10d4c7572eb425845243a6e715 (diff)
downloadandroid_packages_apps_Snap-f22ed280bae246a4b9ce31e5fada68a30f211aed.tar.gz
android_packages_apps_Snap-f22ed280bae246a4b9ce31e5fada68a30f211aed.tar.bz2
android_packages_apps_Snap-f22ed280bae246a4b9ce31e5fada68a30f211aed.zip
Fix camera controls blink on startup
Bug: 9052837 Change-Id: Ie15b812c6e6e7879d29d96a345173a2130b2fe91
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r--src/com/android/gallery3d/ui/PhotoView.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/PhotoView.java b/src/com/android/gallery3d/ui/PhotoView.java
index 5c8ac1c3e..7afa20348 100644
--- a/src/com/android/gallery3d/ui/PhotoView.java
+++ b/src/com/android/gallery3d/ui/PhotoView.java
@@ -1423,6 +1423,11 @@ public class PhotoView extends GLView {
@Override
protected void render(GLCanvas canvas) {
+ if (mFirst) {
+ // Make sure the fields are properly initialized before checking
+ // whether isCamera()
+ mPictures.get(0).reload();
+ }
// Check if the camera preview occupies the full screen.
boolean full = !mFilmMode && mPictures.get(0).isCamera()
&& mPositionController.isCenter()