[android] Minor perfomance fix

This commit is contained in:
Alex Zolotarev 2012-03-26 15:48:20 +03:00 committed by Alex Zolotarev
parent c04d3668b7
commit b8baaca8c3

View file

@ -304,7 +304,7 @@ public class LocationService implements LocationListener, SensorEventListener, W
break;
}
north = (float) (north - 360 * Math.floor(north / 360));
north = (north - 360 * android.util.FloatMath.floor(north / 360));
notifyCompassUpdated(event.timestamp, north, north + offset, offset);
}