diff options
author | Neil Fuller <nfuller@google.com> | 2015-04-15 09:27:46 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-15 09:27:46 +0000 |
commit | deb3dd3ef824d9a46467b55cda3d7448268a1488 (patch) | |
tree | 0320db9a69afde75db19e55315c8975e29254f1a /WallpaperPicker | |
parent | 4a9c2e78a527801788212c7eae7bd1688dafa19c (diff) | |
parent | ba41458f5c696194d547ac8f24e9f8e58cfa64fc (diff) | |
download | android_packages_apps_Trebuchet-deb3dd3ef824d9a46467b55cda3d7448268a1488.tar.gz android_packages_apps_Trebuchet-deb3dd3ef824d9a46467b55cda3d7448268a1488.tar.bz2 android_packages_apps_Trebuchet-deb3dd3ef824d9a46467b55cda3d7448268a1488.zip |
am ba41458f: Remove usage of FloatMath
* commit 'ba41458f5c696194d547ac8f24e9f8e58cfa64fc':
Remove usage of FloatMath
Diffstat (limited to 'WallpaperPicker')
-rw-r--r-- | WallpaperPicker/src/com/android/launcher3/CropView.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/WallpaperPicker/src/com/android/launcher3/CropView.java b/WallpaperPicker/src/com/android/launcher3/CropView.java index 578b8eafd..50f779add 100644 --- a/WallpaperPicker/src/com/android/launcher3/CropView.java +++ b/WallpaperPicker/src/com/android/launcher3/CropView.java @@ -21,7 +21,6 @@ import android.graphics.Matrix; import android.graphics.Point; import android.graphics.RectF; import android.util.AttributeSet; -import android.util.FloatMath; import android.view.MotionEvent; import android.view.ScaleGestureDetector; import android.view.ScaleGestureDetector.OnScaleGestureListener; @@ -300,12 +299,12 @@ public class CropView extends TiledImageView implements OnScaleGestureListener { adjustment[0] = (edges.right - getWidth()) / scale; } if (edges.top > 0) { - adjustment[1] = FloatMath.ceil(edges.top / scale); + adjustment[1] = (float) Math.ceil(edges.top / scale); } else if (edges.bottom < getHeight()) { adjustment[1] = (edges.bottom - getHeight()) / scale; } for (int dim = 0; dim <= 1; dim++) { - if (coef[dim] > 0) adjustment[dim] = FloatMath.ceil(adjustment[dim]); + if (coef[dim] > 0) adjustment[dim] = (float) Math.ceil(adjustment[dim]); } mInverseRotateMatrix.mapPoints(adjustment); |