|
@@ -7,10 +7,10 @@ class ImageLruCache {
|
|
static LRUMap<int, File> _map = LRUMap(500);
|
|
static LRUMap<int, File> _map = LRUMap(500);
|
|
|
|
|
|
static File get(Photo photo) {
|
|
static File get(Photo photo) {
|
|
- return _map.get(photo.generatedId);
|
|
|
|
|
|
+ return _map.get(photo.hashCode);
|
|
}
|
|
}
|
|
|
|
|
|
static void put(Photo photo, File imageData) {
|
|
static void put(Photo photo, File imageData) {
|
|
- _map.put(photo.generatedId, imageData);
|
|
|
|
|
|
+ _map.put(photo.hashCode, imageData);
|
|
}
|
|
}
|
|
}
|
|
}
|