From 0c2f2865622af03ffe42cd75c784d5b0b19fe17e Mon Sep 17 00:00:00 2001 From: Owen Lin Date: Mon, 4 May 2009 18:29:47 -0700 Subject: fix bug 1496878 --- src/com/android/camera/ImageGallery.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/com/android') diff --git a/src/com/android/camera/ImageGallery.java b/src/com/android/camera/ImageGallery.java index ef8871e..a0050b0 100644 --- a/src/com/android/camera/ImageGallery.java +++ b/src/com/android/camera/ImageGallery.java @@ -652,7 +652,7 @@ public class ImageGallery extends Activity implements private final String mProgressTextFormatString; boolean mDidSetProgress = false; private long mLastUpdateTime; // initialized to 0 - private PowerManager.WakeLock mWakeLock; + private final PowerManager.WakeLock mWakeLock; private MyThumbCheckCallback() { Resources resources = getResources(); @@ -674,10 +674,12 @@ public class ImageGallery extends Activity implements if (!mDidSetProgress) { mHandler.post(new Runnable() { - public void run() { - View v = findViewById(R.id.loading_indicator); - v.setVisibility(View.VISIBLE); - } + public void run() { + findViewById(R.id.loading_text).setVisibility( + View.VISIBLE); + findViewById(android.R.id.progress).setVisibility( + View.VISIBLE); + } }); mDidSetProgress = true; } @@ -707,7 +709,8 @@ public class ImageGallery extends Activity implements mWakeLock.release(); mHandler.post(new Runnable() { public void run() { - findViewById(R.id.loading_indicator).setVisibility( + findViewById(R.id.loading_text).setVisibility(View.GONE); + findViewById(android.R.id.progress).setVisibility( View.GONE); } }); -- cgit v1.1