diff --git a/android/src/com/mapswithme/maps/location/LocationHelper.java b/android/src/com/mapswithme/maps/location/LocationHelper.java index e525462267..7fb2dbe2a5 100644 --- a/android/src/com/mapswithme/maps/location/LocationHelper.java +++ b/android/src/com/mapswithme/maps/location/LocationHelper.java @@ -306,10 +306,6 @@ public enum LocationHelper implements Initializable, AppBackgroundTrack nativeOnLocationError(errCode); if (mUiCallback != null) mUiCallback.onLocationError(errCode); - - for (LocationListener listener : mListeners) - listener.onLocationError(errCode); - mListeners.finishIterate(); } private void notifyMyPositionModeChanged(int newMode) diff --git a/android/src/com/mapswithme/maps/location/LocationListener.java b/android/src/com/mapswithme/maps/location/LocationListener.java index 212b73c406..2bde0630a3 100644 --- a/android/src/com/mapswithme/maps/location/LocationListener.java +++ b/android/src/com/mapswithme/maps/location/LocationListener.java @@ -11,12 +11,8 @@ public interface LocationListener @Override public void onCompassUpdated(long time, double north) {} - - @Override - public void onLocationError(int errorCode) {} } void onLocationUpdated(Location location); void onCompassUpdated(long time, double north); - void onLocationError(int errorCode); } diff --git a/android/src/com/mapswithme/maps/routing/NavigationService.java b/android/src/com/mapswithme/maps/routing/NavigationService.java index d60636afb6..df06a7b00b 100644 --- a/android/src/com/mapswithme/maps/routing/NavigationService.java +++ b/android/src/com/mapswithme/maps/routing/NavigationService.java @@ -69,12 +69,6 @@ public class NavigationService extends Service updateNotification(routingInfo); } } - - @Override - public void onLocationError(int errorCode) - { - Logger.e(TAG, "onLocationError() errorCode: " + errorCode); - } }; public class LocalBinder extends Binder diff --git a/android/src/com/mapswithme/maps/widget/placepage/DirectionFragment.java b/android/src/com/mapswithme/maps/widget/placepage/DirectionFragment.java index f983b0e401..f1fc968bd4 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/DirectionFragment.java +++ b/android/src/com/mapswithme/maps/widget/placepage/DirectionFragment.java @@ -135,7 +135,4 @@ public class DirectionFragment extends BaseMwmDialogFragment if (da.getAzimuth() >= 0) mAvDirection.setAzimuth(da.getAzimuth()); } - - @Override - public void onLocationError(int errorCode) {} } diff --git a/android/src/com/mapswithme/maps/widget/placepage/RichPlacePageController.java b/android/src/com/mapswithme/maps/widget/placepage/RichPlacePageController.java index fdec72b371..f0840d2ae7 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/RichPlacePageController.java +++ b/android/src/com/mapswithme/maps/widget/placepage/RichPlacePageController.java @@ -257,12 +257,6 @@ public class RichPlacePageController implements PlacePageController, LocationLis mPlacePage.refreshAzimuth(north); } - @Override - public void onLocationError(int errorCode) - { - // Do nothing by default. - } - @Override public void onSave(@NonNull Bundle outState) {