summaryrefslogtreecommitdiffstats
path: root/photoviewer
diff options
context:
space:
mode:
authorPaul Westbrook <pwestbro@google.com>2012-10-24 08:22:18 -0700
committerPaul Westbrook <pwestbro@google.com>2012-10-24 14:02:56 -0700
commitb1b8fc2577d8ce9493608056cef6a725437a5ef2 (patch)
tree6074f8f8e93f5361e7a18f2ae75d566351a6bb53 /photoviewer
parent28c2b3bde4084af90a4951b27f5570a7fe7c5fa9 (diff)
downloadandroid_frameworks_ex-b1b8fc2577d8ce9493608056cef6a725437a5ef2.tar.gz
android_frameworks_ex-b1b8fc2577d8ce9493608056cef6a725437a5ef2.tar.bz2
android_frameworks_ex-b1b8fc2577d8ce9493608056cef6a725437a5ef2.zip
Restart loader on attachment cursor updates
Bug: 7403076 Change-Id: I620403db9f7304e99ca4e9c0c58a439e277225d0
Diffstat (limited to 'photoviewer')
-rw-r--r--photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java6
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);
}
}