summaryrefslogtreecommitdiffstats
path: root/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
diff options
context:
space:
mode:
authorAndrew Sapperstein <asapperstein@google.com>2012-07-20 15:50:35 -0700
committerAndrew Sapperstein <asapperstein@google.com>2012-07-23 10:00:22 -0700
commita6729336171ef61950d5f585b0f39c013ae6dcbc (patch)
treeea6e33d0fd10e441124ce57e7e4551a22a016042 /photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
parenta9721f38340e84806b8ffae28b858b689892f7c0 (diff)
downloadandroid_frameworks_ex-a6729336171ef61950d5f585b0f39c013ae6dcbc.tar.gz
android_frameworks_ex-a6729336171ef61950d5f585b0f39c013ae6dcbc.tar.bz2
android_frameworks_ex-a6729336171ef61950d5f585b0f39c013ae6dcbc.zip
Reloading bitmaps if cursor updates.
Change-Id: I5624e533d4f35255028cd1a31508dabdb33dfe7f
Diffstat (limited to 'photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java')
-rw-r--r--photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java b/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
index 9ca0c59..f5c5cd0 100644
--- a/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
+++ b/photoviewer/src/com/android/ex/photo/loaders/PhotoBitmapLoader.java
@@ -30,7 +30,7 @@ import com.android.ex.photo.util.ImageUtils;
* Loader for the bitmap of a photo.
*/
public class PhotoBitmapLoader extends AsyncTaskLoader<Bitmap> {
- private final String mPhotoUri;
+ private String mPhotoUri;
private Bitmap mBitmap;
@@ -39,6 +39,10 @@ public class PhotoBitmapLoader extends AsyncTaskLoader<Bitmap> {
mPhotoUri = photoUri;
}
+ public void setPhotoUri(String photoUri) {
+ mPhotoUri = photoUri;
+ }
+
@Override
public Bitmap loadInBackground() {
Context context = getContext();