diff options
author | Chih-Chung Chang <chihchung@google.com> | 2012-02-11 07:19:47 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2012-02-11 07:20:05 +0800 |
commit | e1e40b31bfce1885fb96edd1f92016cd73077d36 (patch) | |
tree | 5df2e2c294f0f7c65ea75452d44d564780bf38e9 /src/com/android/gallery3d/data | |
parent | feef78c1ecf63c88e052698040e809f25ffef0c4 (diff) | |
download | android_packages_apps_Snap-e1e40b31bfce1885fb96edd1f92016cd73077d36.tar.gz android_packages_apps_Snap-e1e40b31bfce1885fb96edd1f92016cd73077d36.tar.bz2 android_packages_apps_Snap-e1e40b31bfce1885fb96edd1f92016cd73077d36.zip |
Use FloatMath instead of Math.
Change-Id: I26eb6a554f72c13ba2801ce35ef0cf2a1466a97b
Diffstat (limited to 'src/com/android/gallery3d/data')
-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; |