summaryrefslogtreecommitdiffstats
path: root/photoviewer
diff options
context:
space:
mode:
authorAdam Copp <adamcopp@google.com>2012-09-14 03:10:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-14 03:10:09 -0700
commit685658bb07dc786536e038060fdeec975aa62176 (patch)
tree685e32edeb49328583db0276ff6635acac708ff5 /photoviewer
parentebd44ab0a113bc05ef7b8a90dd245327c30f710a (diff)
parent04e714257e8d6da434cb2d23feab365d38d05273 (diff)
downloadandroid_frameworks_ex-685658bb07dc786536e038060fdeec975aa62176.tar.gz
android_frameworks_ex-685658bb07dc786536e038060fdeec975aa62176.tar.bz2
android_frameworks_ex-685658bb07dc786536e038060fdeec975aa62176.zip
Merge "Do not show loading bar after thumbnail has loaded"
Diffstat (limited to 'photoviewer')
-rw-r--r--photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
index 7be37b0..c6c2e3b 100644
--- a/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
+++ b/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java
@@ -272,18 +272,16 @@ public class PhotoViewFragment extends Fragment implements
}
break;
case LOADER_ID_THUMBNAIL:
+ mProgressBarNeeded = false;
if (isPhotoBound()) {
// There is need to do anything with the thumbnail image, as the full size
// image is being shown.
mPhotoPreviewAndProgress.setVisibility(View.GONE);
- mProgressBarNeeded = false;
return;
} else if (data == null) {
// no preview, show default
mPhotoPreviewImage.setVisibility(View.VISIBLE);
mPhotoPreviewImage.setImageResource(R.drawable.default_image);
-
- mProgressBarNeeded = false;
} else {
bindPhoto(data);
getLoaderManager().initLoader(LOADER_ID_PHOTO, null, this);