aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorSam Judd <sam@bu.mp>2013-08-20 11:16:32 -0700
committerSam Judd <sam@bu.mp>2013-08-20 11:17:13 -0700
commit0db29a8601b04d3a05ec0c1afac7d0d0297af83a (patch)
tree971ffc6fbe578700cf709567dfd8ecf0a0eb93d9 /samples
parentd1b45a65e7f6f6d1a61032f7b154a26dbb078768 (diff)
downloadglide-0db29a8601b04d3a05ec0c1afac7d0d0297af83a.tar.gz
Make buildModelLoader a static method on Glide
It's not a setter, so it might as well have the slightly simpler static syntax.
Diffstat (limited to 'samples')
-rw-r--r--samples/flickr/src/com/bumptech/glide/samples/flickr/FlickrPhotoGrid.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/flickr/src/com/bumptech/glide/samples/flickr/FlickrPhotoGrid.java b/samples/flickr/src/com/bumptech/glide/samples/flickr/FlickrPhotoGrid.java
index 5f33f778..28386866 100644
--- a/samples/flickr/src/com/bumptech/glide/samples/flickr/FlickrPhotoGrid.java
+++ b/samples/flickr/src/com/bumptech/glide/samples/flickr/FlickrPhotoGrid.java
@@ -112,7 +112,7 @@ public class FlickrPhotoGrid extends SherlockFragment implements PhotoViewer {
//reason why ImagePresenter is used here and not in FlickrPhotoList.
final Animation fadeIn = AnimationUtils.loadAnimation(context, R.anim.fade_in);
imagePresenter = new ImagePresenter.Builder<Photo>()
- .setModelLoader(Glide.get().buildModelLoader(Photo.class, context))
+ .setModelLoader(Glide.buildModelLoader(Photo.class, context))
.setImageView(imageView)
.setImageLoader(new ImageManagerLoader(context))
.setTransformationLoader(new CenterCrop<Photo>())