diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-05 21:46:12 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-05 21:46:12 -0700 |
commit | 8edec93f6d0b617c1e51a7aff07aa0a61456d41e (patch) | |
tree | b7602a9fcb8f613dfdcc7902e2473dcf0484c237 /src/com/android | |
parent | 41d372ed8c8b8fd7bf5ee9bda8dd3d4e688e325f (diff) | |
parent | 0c2f2865622af03ffe42cd75c784d5b0b19fe17e (diff) | |
download | LegacyCamera-8edec93f6d0b617c1e51a7aff07aa0a61456d41e.zip LegacyCamera-8edec93f6d0b617c1e51a7aff07aa0a61456d41e.tar.gz LegacyCamera-8edec93f6d0b617c1e51a7aff07aa0a61456d41e.tar.bz2 |
Merge change 969 into donut
* changes:
fix bug 1496878
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/camera/ImageGallery.java | 15 |
1 files changed, 9 insertions, 6 deletions
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); } }); |