Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Comment

  • Loading branch information...
commit 46e21d6f7f738ecd120174b5b37faecc1ca44169 1 parent fe1baee
@thest1 thest1 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/com/fedorvlasov/lazylist/FileCache.java
View
2  src/com/fedorvlasov/lazylist/FileCache.java
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.