Skip to content

Commit c3d8c2d

Browse files
committed
Merge pull request #106 from Yarikx/remove_floatmath
remove useage of FloatMath class, use Math instead
2 parents 29d2988 + 57034ad commit c3d8c2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/src/com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import android.support.annotation.NonNull;
3939
import android.util.AttributeSet;
4040
import android.util.DisplayMetrics;
41-
import android.util.FloatMath;
4241
import android.util.Log;
4342
import android.util.TypedValue;
4443
import android.view.GestureDetector;
@@ -1760,7 +1759,7 @@ private int getRequiredRotation() {
17601759
private float distance(float x0, float x1, float y0, float y1) {
17611760
float x = x0 - x1;
17621761
float y = y0 - y1;
1763-
return FloatMath.sqrt(x * x + y * y);
1762+
return (float) Math.sqrt(x * x + y * y);
17641763
}
17651764

17661765
/**

0 commit comments

Comments
 (0)