diff options
Diffstat (limited to 'src/com/android/gallery3d/data/SnailAlbum.java')
-rw-r--r-- | src/com/android/gallery3d/data/SnailAlbum.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/com/android/gallery3d/data/SnailAlbum.java b/src/com/android/gallery3d/data/SnailAlbum.java index 78f718806..7bce7a695 100644 --- a/src/com/android/gallery3d/data/SnailAlbum.java +++ b/src/com/android/gallery3d/data/SnailAlbum.java @@ -29,13 +29,12 @@ public class SnailAlbum extends SingleItemAlbum { } @Override - protected void load() throws InterruptedException { - ((SnailItem) getItem()).updateVersion(); - } - - @Override - protected boolean isDirtyLocked() { - return mDirty.compareAndSet(true, false); + public long reload() { + if (mDirty.compareAndSet(true, false)) { + ((SnailItem) getItem()).updateVersion(); + mDataVersion = nextVersionNumber(); + } + return mDataVersion; } public void notifyChange() { |