diff options
author | Ahbong Chang <cwahbong@google.com> | 2012-07-30 11:34:13 +0800 |
---|---|---|
committer | Ahbong Chang <cwahbong@google.com> | 2012-07-30 11:42:01 +0800 |
commit | 813ac7496e93faa2cf0f2763df421a146d38fc11 (patch) | |
tree | f4a1064166c83f8560cdf5eaeb18a4107fd344a5 /src/com/android/gallery3d/data/LocationClustering.java | |
parent | dbc472eb08c19e78811823f8b83e59c3aeacc6d0 (diff) | |
download | android_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/LocationClustering.java')
-rw-r--r-- | src/com/android/gallery3d/data/LocationClustering.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/LocationClustering.java b/src/com/android/gallery3d/data/LocationClustering.java index b36bd63da..540322a33 100644 --- a/src/com/android/gallery3d/data/LocationClustering.java +++ b/src/com/android/gallery3d/data/LocationClustering.java @@ -29,6 +29,7 @@ import com.android.gallery3d.util.ReverseGeocoder; import java.util.ArrayList; class LocationClustering extends Clustering { + @SuppressWarnings("unused") private static final String TAG = "LocationClustering"; private static final int MIN_GROUPS = 1; @@ -70,6 +71,7 @@ class LocationClustering extends Clustering { // Separate items to two sets: with or without lat-long. final double[] latLong = new double[2]; baseSet.enumerateTotalMediaItems(new MediaSet.ItemConsumer() { + @Override public void consume(int index, MediaItem item) { if (index < 0 || index >= total) return; SmallItem s = new SmallItem(); @@ -137,6 +139,7 @@ class LocationClustering extends Clustering { if (hasUnresolvedAddress) { mHandler.post(new Runnable() { + @Override public void run() { Toast.makeText(mContext, R.string.no_connectivity, Toast.LENGTH_LONG).show(); |