diff options
author | Paul Westbrook <pwestbro@google.com> | 2012-10-29 14:21:21 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-29 14:21:21 -0700 |
commit | a27fb71f92f323b5d693942d219f66b886fad6e7 (patch) | |
tree | 820b9ec97672f1bc9b4fa5665da770e8796a9fd1 | |
parent | f70a5e84bcd944b46f1621144f50f83c7eb26215 (diff) | |
parent | 939ce1b0bcd1ded7e1dc8c36eb89dcd4d891bd12 (diff) | |
download | android_frameworks_ex-a27fb71f92f323b5d693942d219f66b886fad6e7.tar.gz android_frameworks_ex-a27fb71f92f323b5d693942d219f66b886fad6e7.tar.bz2 android_frameworks_ex-a27fb71f92f323b5d693942d219f66b886fad6e7.zip |
am 939ce1b0: Restart loader on attachment cursor updates
* commit '939ce1b0bcd1ded7e1dc8c36eb89dcd4d891bd12':
Restart loader on attachment cursor updates
-rw-r--r-- | photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java index 2e99bd8..2ecbeb7 100644 --- a/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java +++ b/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java @@ -272,7 +272,7 @@ public class PhotoViewFragment extends Fragment implements } break; case LOADER_ID_THUMBNAIL: - if (isPhotoBound()) { + if (isPhotoBound()) { // There is need to do anything with the thumbnail image, as the full size // image is being shown. mPhotoPreviewAndProgress.setVisibility(View.GONE); @@ -346,6 +346,10 @@ public class PhotoViewFragment extends Fragment implements // we're not in the foreground; reset our view resetViews(); } else { + if (!isPhotoBound()) { + // Restart the loader + getLoaderManager().restartLoader(LOADER_ID_THUMBNAIL, null, this); + } mCallback.onFragmentVisible(this); } } |