/[projects]/android/Side9/src/dk/thoerup/side9/ImageAdapter.java
ViewVC logotype

Diff of /android/Side9/src/dk/thoerup/side9/ImageAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1178 by torben, Tue Aug 10 07:01:40 2010 UTC revision 1179 by torben, Sat Oct 30 06:42:53 2010 UTC
# Line 61  public class ImageAdapter extends BaseAd Line 61  public class ImageAdapter extends BaseAd
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);

Legend:
Removed from v.1178  
changed lines
  Added in v.1179

  ViewVC Help
Powered by ViewVC 1.1.20