Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Remove FloatMath for API 23+ #370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions library/src/com/viewpagerindicator/LinePageIndicator.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import android.support.v4.view.ViewConfigurationCompat;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.util.FloatMath;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
Expand Down Expand Up @@ -369,7 +368,7 @@ private int measureWidth(int measureSpec) {
result = Math.min(result, specSize);
}
}
return (int)FloatMath.ceil(result);
return (int) Math.ceil(result);
}

/**
Expand All @@ -395,7 +394,7 @@ private int measureHeight(int measureSpec) {
result = Math.min(result, specSize);
}
}
return (int)FloatMath.ceil(result);
return (int) Math.ceil(result);
}

@Override
Expand Down Expand Up @@ -445,4 +444,4 @@ public SavedState[] newArray(int size) {
}
};
}
}
}