summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/ClusterAlbumSet.java
diff options
context:
space:
mode:
authorAhbong Chang <cwahbong@google.com>2012-07-30 11:34:13 +0800
committerAhbong Chang <cwahbong@google.com>2012-07-30 11:42:01 +0800
commit813ac7496e93faa2cf0f2763df421a146d38fc11 (patch)
treef4a1064166c83f8560cdf5eaeb18a4107fd344a5 /src/com/android/gallery3d/data/ClusterAlbumSet.java
parentdbc472eb08c19e78811823f8b83e59c3aeacc6d0 (diff)
downloadandroid_packages_apps_Snap-813ac7496e93faa2cf0f2763df421a146d38fc11.tar.gz
android_packages_apps_Snap-813ac7496e93faa2cf0f2763df421a146d38fc11.tar.bz2
android_packages_apps_Snap-813ac7496e93faa2cf0f2763df421a146d38fc11.zip
Code clean up.
Remove unused imports. Remove unused fields. Remove unnecessary cast. Add missing override annotations. Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
Diffstat (limited to 'src/com/android/gallery3d/data/ClusterAlbumSet.java')
-rw-r--r--src/com/android/gallery3d/data/ClusterAlbumSet.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/ClusterAlbumSet.java b/src/com/android/gallery3d/data/ClusterAlbumSet.java
index 863e94ad5..a32ba87f4 100644
--- a/src/com/android/gallery3d/data/ClusterAlbumSet.java
+++ b/src/com/android/gallery3d/data/ClusterAlbumSet.java
@@ -25,6 +25,7 @@ import java.util.ArrayList;
import java.util.HashSet;
public class ClusterAlbumSet extends MediaSet implements ContentListener {
+ @SuppressWarnings("unused")
private static final String TAG = "ClusterAlbumSet";
private GalleryApp mApplication;
private MediaSet mBaseSet;
@@ -70,6 +71,7 @@ public class ClusterAlbumSet extends MediaSet implements ContentListener {
return mDataVersion;
}
+ @Override
public void onContentDirty() {
notifyContentChanged();
}
@@ -125,6 +127,7 @@ public class ClusterAlbumSet extends MediaSet implements ContentListener {
private void updateClustersContents() {
final HashSet<Path> existing = new HashSet<Path>();
mBaseSet.enumerateTotalMediaItems(new MediaSet.ItemConsumer() {
+ @Override
public void consume(int index, MediaItem item) {
existing.add(item.getPath());
}