summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-10-11 17:53:22 -0700
committerBobby Georgescu <georgescu@google.com>2012-10-12 11:18:44 -0700
commit5273e8306410d19e2e2cf6234bfe0a05097be874 (patch)
tree3a81e65360cc230845527819f5adcc852ddaa826 /src/com/android/gallery3d/data
parent43b6cf3abce288ee5f26ebe4a904e0ef2b5041c6 (diff)
downloadandroid_packages_apps_Gallery2-5273e8306410d19e2e2cf6234bfe0a05097be874.tar.gz
android_packages_apps_Gallery2-5273e8306410d19e2e2cf6234bfe0a05097be874.tar.bz2
android_packages_apps_Gallery2-5273e8306410d19e2e2cf6234bfe0a05097be874.zip
Improve performance of filmstrip
Bug: 7336758 Change-Id: I22dbf2e75bc069341a9bbc2c4dcdf7750f23be7f
Diffstat (limited to 'src/com/android/gallery3d/data')
-rw-r--r--src/com/android/gallery3d/data/LocalImage.java2
-rw-r--r--src/com/android/gallery3d/data/MediaObject.java2
-rw-r--r--src/com/android/gallery3d/data/UriImage.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/data/LocalImage.java b/src/com/android/gallery3d/data/LocalImage.java
index 60e5ab4e2..2ba784de7 100644
--- a/src/com/android/gallery3d/data/LocalImage.java
+++ b/src/com/android/gallery3d/data/LocalImage.java
@@ -306,7 +306,7 @@ public class LocalImage extends LocalMediaItem {
mPanoramaMetadata = future.get();
mPanoramaMetadataInitialized = true;
if (mListener != null) {
- mListener.onChange(getSupportedOperations());
+ mListener.onChange(LocalImage.this, getSupportedOperations());
}
}
});
diff --git a/src/com/android/gallery3d/data/MediaObject.java b/src/com/android/gallery3d/data/MediaObject.java
index 382a5c792..1fdf8a216 100644
--- a/src/com/android/gallery3d/data/MediaObject.java
+++ b/src/com/android/gallery3d/data/MediaObject.java
@@ -50,7 +50,7 @@ public abstract class MediaObject {
public static final int SUPPORT_ALL = 0xffffffff;
public static interface SupportedOperationsListener {
- public void onChange(int operations);
+ public void onChange(MediaObject item, int operations);
}
// These are the bits returned from getMediaType():
diff --git a/src/com/android/gallery3d/data/UriImage.java b/src/com/android/gallery3d/data/UriImage.java
index 51ad4b4f8..aaa36a917 100644
--- a/src/com/android/gallery3d/data/UriImage.java
+++ b/src/com/android/gallery3d/data/UriImage.java
@@ -273,7 +273,7 @@ public class UriImage extends MediaItem {
mPanoramaMetadata = future.get();
mPanoramaMetadataInitialized = true;
if (mListener != null) {
- mListener.onChange(getSupportedOperations());
+ mListener.onChange(UriImage.this, getSupportedOperations());
}
}
});