diff --git a/android/src/com/mapswithme/maps/location/LocationService.java b/android/src/com/mapswithme/maps/location/LocationService.java index 13640a6c44..0e4de4cc18 100644 --- a/android/src/com/mapswithme/maps/location/LocationService.java +++ b/android/src/com/mapswithme/maps/location/LocationService.java @@ -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); }