diff options
Diffstat (limited to 'src/com/android/gallery3d/data/LocationClustering.java')
-rw-r--r-- | src/com/android/gallery3d/data/LocationClustering.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/data/LocationClustering.java b/src/com/android/gallery3d/data/LocationClustering.java index 788060cf0..9f3a35890 100644 --- a/src/com/android/gallery3d/data/LocationClustering.java +++ b/src/com/android/gallery3d/data/LocationClustering.java @@ -23,6 +23,7 @@ import com.android.gallery3d.util.GalleryUtils; import android.content.Context; import android.os.Handler; import android.os.Looper; +import android.util.FloatMath; import android.widget.Toast; import java.util.ArrayList; @@ -294,7 +295,7 @@ class LocationClustering extends Clustering { } // step 5: calculate the final score - float score = totalDistance * (float) Math.sqrt(realK); + float score = totalDistance * FloatMath.sqrt(realK); if (score < bestScore) { bestScore = score; |