61 |
String fileName = f.getName(); |
String fileName = f.getName(); |
62 |
File thumb = new File ( thumbPath + fileName ); |
File thumb = new File ( thumbPath + fileName ); |
63 |
|
|
64 |
if (! thumb.exists()) { |
if (! thumb.exists() || thumb.lastModified() < f.lastModified()) { |
65 |
Bitmap bmp = BitmapFactory.decodeFile( f.getPath() ); |
Bitmap bmp = BitmapFactory.decodeFile( f.getPath() ); |
66 |
Bitmap scaled = Bitmap.createScaledBitmap(bmp, bmp.getWidth()/4, bmp.getHeight()/4, true); |
Bitmap scaled = Bitmap.createScaledBitmap(bmp, bmp.getWidth()/4, bmp.getHeight()/4, true); |
67 |
mBitmaps.add(scaled); |
mBitmaps.add(scaled); |