summaryrefslogtreecommitdiffstats
path: root/WallpaperPicker/src/com/android/launcher3/CropView.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-07-23 21:24:37 -0700
committerHyunyoung Song <hyunyoungs@google.com>2015-07-23 21:24:37 -0700
commit0c0d54637af7109ae22e21a117dba3efdaded4b5 (patch)
treefe9ed94353b09dda232fceb64691f96dcd5db8d3 /WallpaperPicker/src/com/android/launcher3/CropView.java
parentcf51139c6e1d57b57177109f2177edc41edf5bbc (diff)
parent13ef17a37e683b8ad5800e9f542b411180fbec2f (diff)
downloadandroid_packages_apps_Trebuchet-0c0d54637af7109ae22e21a117dba3efdaded4b5.tar.gz
android_packages_apps_Trebuchet-0c0d54637af7109ae22e21a117dba3efdaded4b5.tar.bz2
android_packages_apps_Trebuchet-0c0d54637af7109ae22e21a117dba3efdaded4b5.zip
resolved conflicts for merge of 13ef17a3 to mnc-ub-dev
b/22609402 Change-Id: I80699d985088b9b79211284e710e8a6b8b90860b
Diffstat (limited to 'WallpaperPicker/src/com/android/launcher3/CropView.java')
-rw-r--r--WallpaperPicker/src/com/android/launcher3/CropView.java5
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);