diff options
author | Neil Fuller <nfuller@google.com> | 2014-10-02 11:48:08 +0100 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2014-10-02 11:48:08 +0100 |
commit | f7cf5d43aa13405f9d0dd54f6038f710a0423323 (patch) | |
tree | 76f33c6e39a9ca49ff9c1d9d776cb86115bc7ff3 /core/java/android/hardware | |
parent | 92c414724f84e32df3c0f79ce11e37ef3d481611 (diff) | |
parent | ee665151a4c6359cbfbb9a6795aa9097c4622083 (diff) | |
download | frameworks_base-f7cf5d43aa13405f9d0dd54f6038f710a0423323.zip frameworks_base-f7cf5d43aa13405f9d0dd54f6038f710a0423323.tar.gz frameworks_base-f7cf5d43aa13405f9d0dd54f6038f710a0423323.tar.bz2 |
resolved conflicts for merge of ee665151 to lmp-dev-plus-aosp
Change-Id: I97671e62de26919e391dbb2686511584c59ab990
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r-- | core/java/android/hardware/GeomagneticField.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/hardware/GeomagneticField.java b/core/java/android/hardware/GeomagneticField.java index ef05732..eb26ee5 100644 --- a/core/java/android/hardware/GeomagneticField.java +++ b/core/java/android/hardware/GeomagneticField.java @@ -281,7 +281,7 @@ public class GeomagneticField { * @return Horizontal component of the field strength in nonoteslas. */ public float getHorizontalStrength() { - return (float) Math.sqrt(mX * mX + mY * mY); + return (float) Math.hypot(mX, mY); } /** |