Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I stuck on android method FloatMath.floor API does not issue

Method:

@Override
protected boolean isReadyForPullEnd() {
    @SuppressWarnings("deprecation")
    float exactContentHeight = FloatMath.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());
    return mRefreshableView.getScrollY() >= (exactContentHeight - mRefreshableView.getHeight());
}

Output: Error:(116, 39) error: cannot find symbol method floor(float)

Any one idea to fix this one?

like image 703
Aphikrit Gerbert Saravasri Avatar asked Sep 11 '15 12:09

Aphikrit Gerbert Saravasri


1 Answers

FloatMath utility class is deprecated. Use Math.floor instead.

like image 159
Sfseyhan Avatar answered Oct 14 '22 19:10

Sfseyhan