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 | 7817979db0c52ffeacb951625b1e821eba303285 (patch) | |
tree | 5ae75517d45dae1486815b41bd56af0685bf0f91 /src/com/android/gallery3d/data/LocationClustering.java | |
parent | 995c4566bed7df1aa48ba7e1351f964efa73880b (diff) | |
download | android_packages_apps_Gallery2-7817979db0c52ffeacb951625b1e821eba303285.tar.gz android_packages_apps_Gallery2-7817979db0c52ffeacb951625b1e821eba303285.tar.bz2 android_packages_apps_Gallery2-7817979db0c52ffeacb951625b1e821eba303285.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(); |