Skip to content
Browse files


  • Loading branch information...
1 parent fe1baee commit 46e21d6f7f738ecd120174b5b37faecc1ca44169 @thest1 thest1 committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/com/fedorvlasov/lazylist/
2 src/com/fedorvlasov/lazylist/
@@ -20,6 +20,8 @@ public FileCache(Context context){
public File getFile(String url){
//I identify images by hashcode. Not a perfect solution, good for the demo.
String filename=String.valueOf(url.hashCode());
+ //Another possible solution (thanks to grantland)
+ //String filename = URLEncoder.encode(url);
File f = new File(cacheDir, filename);
return f;

0 comments on commit 46e21d6

Please sign in to comment.
Something went wrong with that request. Please try again.