diff options
author | ztenghui <ztenghui@google.com> | 2013-07-18 14:40:10 -0700 |
---|---|---|
committer | ztenghui <ztenghui@google.com> | 2013-07-19 14:32:58 -0700 |
commit | d32b92d96ad07f15f6130a8608a67ab96c962a96 (patch) | |
tree | 65f64943cb29acd08c9622bc7065d4201384a243 /src/com/android/gallery3d/data/LocalVideo.java | |
parent | 4264520a6a231d42f65168b07e7e793cda7b1a8d (diff) | |
download | android_packages_apps_Snap-d32b92d96ad07f15f6130a8608a67ab96c962a96.tar.gz android_packages_apps_Snap-d32b92d96ad07f15f6130a8608a67ab96c962a96.tar.bz2 android_packages_apps_Snap-d32b92d96ad07f15f6130a8608a67ab96c962a96.zip |
Update Uri instead of removing
In this way, the processing service can have a better presentation.
The cache key now include the file Uri and local abs path if exists.
bug:9468909
Change-Id: I0919c09ad26bea2e798c99ad376996547f8f2bf8
Diffstat (limited to 'src/com/android/gallery3d/data/LocalVideo.java')
-rw-r--r-- | src/com/android/gallery3d/data/LocalVideo.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/data/LocalVideo.java b/src/com/android/gallery3d/data/LocalVideo.java index b1e1cb3aa..4b8774ca4 100644 --- a/src/com/android/gallery3d/data/LocalVideo.java +++ b/src/com/android/gallery3d/data/LocalVideo.java @@ -152,15 +152,17 @@ public class LocalVideo extends LocalMediaItem { @Override public Job<Bitmap> requestImage(int type) { - return new LocalVideoRequest(mApplication, getPath(), type, filePath); + return new LocalVideoRequest(mApplication, getPath(), dateModifiedInSec, + type, filePath); } public static class LocalVideoRequest extends ImageCacheRequest { private String mLocalFilePath; - LocalVideoRequest(GalleryApp application, Path path, int type, - String localFilePath) { - super(application, path, type, MediaItem.getTargetSize(type)); + LocalVideoRequest(GalleryApp application, Path path, long timeModified, + int type, String localFilePath) { + super(application, path, timeModified, type, + MediaItem.getTargetSize(type)); mLocalFilePath = localFilePath; } |