From dd4697d3166a8a3d89afd9012b44c2396bd9552c Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Thu, 2 Oct 2014 15:19:08 +0100 Subject: Remove dependencies on FloatMath See frameworks/base commit 33253a4baa6279f81a73425b49dfb6abe5f5416e for details. Bug: https://code.google.com/p/android/issues/detail?id=36199 Change-Id: I01126788f34b9a464b873bc2fff03acedc43bb52 --- samples/ControllerSample/src/com/example/controllersample/GameView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples/ControllerSample/src/com/example/controllersample') diff --git a/samples/ControllerSample/src/com/example/controllersample/GameView.java b/samples/ControllerSample/src/com/example/controllersample/GameView.java index 6481a2a39..1f5474eba 100644 --- a/samples/ControllerSample/src/com/example/controllersample/GameView.java +++ b/samples/ControllerSample/src/com/example/controllersample/GameView.java @@ -448,7 +448,7 @@ public class GameView extends View implements InputDeviceListener { } private static float pythag(float x, float y) { - return (float) Math.sqrt(x * x + y * y); + return (float) Math.hypot(x, y); } private static int blend(float alpha, int from, int to) { -- cgit v1.2.3