am f1340f18: Merge "Remove dependencies on FloatMath"
* commit 'f1340f1810464ec656262141326c87b3896a3550': Remove dependencies on FloatMath
This commit is contained in:
commit
23582d7da0
8 files changed
+15
-24
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user