summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/ChangeNotifier.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/data/ChangeNotifier.java')
-rw-r--r--src/com/android/gallery3d/data/ChangeNotifier.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/data/ChangeNotifier.java b/src/com/android/gallery3d/data/ChangeNotifier.java
index 35be2dc5b..558a8648e 100644
--- a/src/com/android/gallery3d/data/ChangeNotifier.java
+++ b/src/com/android/gallery3d/data/ChangeNotifier.java
@@ -33,12 +33,18 @@ public class ChangeNotifier {
application.getDataManager().registerChangeNotifier(uri, this);
}
+ public ChangeNotifier(MediaSet set, Uri[] uris, GalleryApp application) {
+ mMediaSet = set;
+ for (int i = 0; i < uris.length; i++) {
+ application.getDataManager().registerChangeNotifier(uris[i], this);
+ }
+ }
+
// Returns the dirty flag and clear it.
public boolean isDirty() {
return mContentDirty.compareAndSet(true, false);
}
- // For debugging only.
public void fakeChange() {
onChange(false);
}