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, 1 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/data/LocationClustering.java b/src/com/android/gallery3d/data/LocationClustering.java index 540322a33..90ac41c65 100644 --- a/src/com/android/gallery3d/data/LocationClustering.java +++ b/src/com/android/gallery3d/data/LocationClustering.java @@ -19,7 +19,6 @@ package com.android.gallery3d.data; import android.content.Context; import android.os.Handler; import android.os.Looper; -import android.util.FloatMath; import android.widget.Toast; import com.android.gallery3d.R; @@ -298,7 +297,7 @@ class LocationClustering extends Clustering { } // step 5: calculate the final score - float score = totalDistance * FloatMath.sqrt(realK); + float score = totalDistance * (float) Math.sqrt(realK); if (score < bestScore) { bestScore = score; |