summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/SecureAlbum.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/data/SecureAlbum.java')
-rw-r--r--src/com/android/gallery3d/data/SecureAlbum.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/com/android/gallery3d/data/SecureAlbum.java b/src/com/android/gallery3d/data/SecureAlbum.java
index 04d51d11c..204f848f8 100644
--- a/src/com/android/gallery3d/data/SecureAlbum.java
+++ b/src/com/android/gallery3d/data/SecureAlbum.java
@@ -122,13 +122,12 @@ public class SecureAlbum extends MediaSet implements StitchingChangeListener {
}
@Override
- protected boolean isDirtyLocked() {
- return mNotifier.isDirty();
- }
-
- @Override
- public void load() {
- updateExistingItems();
+ public long reload() {
+ if (mNotifier.isDirty()) {
+ mDataVersion = nextVersionNumber();
+ updateExistingItems();
+ }
+ return mDataVersion;
}
private ArrayList<Integer> queryExistingIds(Uri uri, int minId, int maxId) {