summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/util
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2014-10-02 16:00:27 +0100
committerNeil Fuller <nfuller@google.com>2014-10-02 16:00:27 +0100
commit8a55d3ae7486b798e4c26eeb91993916145f3cef (patch)
treede8f5d90d108cedd768d39a5cb9f816bab8ea4ed /src/com/android/gallery3d/util
parent9cde04ed08f3a5201a007d78b3c89f43fb3003e0 (diff)
downloadandroid_packages_apps_Gallery2-8a55d3ae7486b798e4c26eeb91993916145f3cef.tar.gz
android_packages_apps_Gallery2-8a55d3ae7486b798e4c26eeb91993916145f3cef.tar.bz2
android_packages_apps_Gallery2-8a55d3ae7486b798e4c26eeb91993916145f3cef.zip
Remove dependencies on FloatMath
See frameworks/base commit 33253a4baa6279f81a73425b49dfb6abe5f5416e for details. Bug: https://code.google.com/p/android/issues/detail?id=36199 Change-Id: I202064d78aeb125035c87257100e949da93c116c
Diffstat (limited to 'src/com/android/gallery3d/util')
-rw-r--r--src/com/android/gallery3d/util/MotionEventHelper.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/util/MotionEventHelper.java b/src/com/android/gallery3d/util/MotionEventHelper.java
index 715f7fa69..dc01cd98c 100644
--- a/src/com/android/gallery3d/util/MotionEventHelper.java
+++ b/src/com/android/gallery3d/util/MotionEventHelper.java
@@ -17,7 +17,6 @@ package com.android.gallery3d.util;
import android.annotation.TargetApi;
import android.graphics.Matrix;
-import android.util.FloatMath;
import android.view.MotionEvent;
import android.view.MotionEvent.PointerCoords;
@@ -104,8 +103,8 @@ public final class MotionEventHelper {
// angle from vertical. Coordinate system: down is increasing Y, right is
// increasing X.
float[] v = new float[2];
- v[0] = FloatMath.sin(angleRadians);
- v[1] = -FloatMath.cos(angleRadians);
+ v[0] = (float) Math.sin(angleRadians);
+ v[1] = (float) -Math.cos(angleRadians);
m.mapVectors(v);
// Derive the transformed vector's clockwise angle from vertical.