am f1340f18: Merge "Remove dependencies on FloatMath"

* commit 'f1340f1810464ec656262141326c87b3896a3550':
  Remove dependencies on FloatMath
This commit is contained in:
Neil Fuller authored and Android Git Automerger committed 2014-10-23 22:30:10 +00:00
commit 23582d7da0
8 files changed
+15 -24

No files matched your search

+2 -2
View File
@@ -601,8 +601,8 @@ public class FocusHelper {
boolean satisfiesRow = (lineDelta < 0) ? (tmpLp.cellY < row) : (tmpLp.cellY > row);
if (satisfiesRow &&
(newV instanceof BubbleTextView || newV instanceof FolderIcon)) {
float tmpDistance = (float) Math.sqrt(Math.pow(tmpLp.cellX - lp.cellX, 2) +
Math.pow(tmpLp.cellY - lp.cellY, 2));
float tmpDistance = (float) Math.hypot(
tmpLp.cellX - lp.cellX, tmpLp.cellY - lp.cellY);
if (tmpDistance < closestDistance) {
closestIndex = index;
closestDistance = tmpDistance;