OSDN Git Service

Fix the issue 1972285: The image rotation does not update in thumbnail view immediate...
authorRay Chen <raychen@google.com>
Fri, 10 Jul 2009 10:36:48 +0000 (18:36 +0800)
committerRay Chen <raychen@google.com>
Mon, 13 Jul 2009 08:52:51 +0000 (16:52 +0800)
src/com/android/camera/ImageGallery.java

index 813200a..dbe743d 100644 (file)
@@ -769,6 +769,9 @@ public class ImageGallery extends Activity implements
                                     return;
                                 }
                                 cb.run(getCurrentImageUri(), getCurrentImage());
+                                rebake(false,
+                                        ImageManager.isMediaScannerScanning(
+                                                getContentResolver()));
                             }
                         });
                 if (r != null) {
@@ -894,7 +897,7 @@ public class ImageGallery extends Activity implements
     public boolean needsDecoration() {
         return (mMultiSelected != null);
     }
-    
+
     public void drawDecoration(Canvas canvas, IImage image,
             int xPos, int yPos, int w, int h) {
         if (mMultiSelected != null) {