summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DeviceProfile.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-04-25 00:23:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-25 00:23:47 +0000
commitf782fb52581988fb44e9126852221eb260d158a9 (patch)
treebdba9fee0dd819d8e2a1c09513a828323eb92b9c /src/com/android/launcher3/DeviceProfile.java
parentd47d90224a6f723ea7b30a5767c9faccc02e63bd (diff)
parentf7a29e83f06909b378dba39c83a522375682710a (diff)
downloadandroid_packages_apps_Trebuchet-f782fb52581988fb44e9126852221eb260d158a9.tar.gz
android_packages_apps_Trebuchet-f782fb52581988fb44e9126852221eb260d158a9.tar.bz2
android_packages_apps_Trebuchet-f782fb52581988fb44e9126852221eb260d158a9.zip
Merge "Removing some unused method params from CellLayout" into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r--src/com/android/launcher3/DeviceProfile.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java
index 22fb6a049..3dadd1a70 100644
--- a/src/com/android/launcher3/DeviceProfile.java
+++ b/src/com/android/launcher3/DeviceProfile.java
@@ -460,8 +460,7 @@ public class DeviceProfile {
}
@Thunk float dist(PointF p0, PointF p1) {
- return (float) Math.sqrt((p1.x - p0.x)*(p1.x-p0.x) +
- (p1.y-p0.y)*(p1.y-p0.y));
+ return (float) Math.hypot(p1.x - p0.x, p1.y - p0.y);
}
private float weight(PointF a, PointF b,