Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b21dc85a authored by Daria Evdokimova's avatar Daria Evdokimova
Browse files

Fixed compilation errors for MNC

Float math was deprecated. Replaced with java.lang.Math.

Change-Id: Ie8858b0c8589ffd7f487877ea9ab7cb48f4a3322
parent 7ad0609e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.deskclock.widget.sgv;

import android.content.Context;
import android.hardware.SensorManager;
import android.util.FloatMath;
import android.util.Log;
import android.view.ViewConfiguration;
import android.view.animation.AnimationUtils;
@@ -179,7 +178,7 @@ public class OverScrollerSGV {
    public float getCurrVelocity() {
        float squaredNorm = mScrollerX.mCurrVelocity * mScrollerX.mCurrVelocity;
        squaredNorm += mScrollerY.mCurrVelocity * mScrollerY.mCurrVelocity;
        return FloatMath.sqrt(squaredNorm);
        return (float) Math.sqrt(squaredNorm);
    }

    /**