github/android — pull request #435 by atermenji (2013-11-07 22:59:08+00:00)
Title: Use Picasso for avatars loading

`AvatarLoader` class has become rather messy lately.
Also keeping disk cache forever has a bug of a user avatars not refreshing when gravatar image is changed.

I've decided to remove completely memory and disc caches in the class and use image loading and caching from [Picasso](http://square.github.io/picasso/) lib from Square.
Picasso relies on http disk caching which respects http cache headers.

Gravatar.com sends `Cache-Control: max-age=300` header, therefore avatar will be refreshed each 5 minutes.
5 minutes is probably not the best time for disk cache expiration but it resolves the issue with avatars not refreshing properly. Anyway, Picasso is pretty fast with images loading.

Sending this as pull request, because I wanted to have some review/testing. cc @kevinsawicki

Refs #321 #349