OSDN Git Service

Fix several issues with ImageList.
authorOwen Lin <owenlin@google.com>
Mon, 22 Jun 2009 22:53:26 +0000 (15:53 -0700)
committerOwen Lin <owenlin@google.com>
Wed, 24 Jun 2009 08:40:27 +0000 (01:40 -0700)
commitb0e1282810ec68fd7585beb9ab9afab9bcafe1bd
treebfe09b7ca2fc1b59e63288ea1329bd8bb3240c15
parent2bb9e74cc84b60a349ec90b34e39973b019ec0bd
Fix several issues with ImageList.

One is bug 1933327

It seems to be timing issue. We assign the value of mAllImages in only
"onCreate" and will set it to null in "onActivityResult".
I modified the code so that it won't be null after "onCreate()".

The other issue is the crop image won't . The reason is we don't clean
up the cache when we reopen the cache. It won't work for ImageListUber
for the original fix since "buildImageListFromUri" won't return ImageList
of type ImageListUber.

The final one is the "getImaegForUri", last time, I made a change but
cause review fails in Camera. But, I need the check if the given uri is
actually the same as the image list not just check the "id".
src/com/android/camera/Util.java
src/com/android/camera/ViewImage.java
src/com/android/camera/gallery/BaseImageList.java
src/com/android/camera/gallery/ImageListUber.java