diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputBottomSheetDialogFragment.java index 010c31ac0c..3ece2a64f8 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputBottomSheetDialogFragment.java @@ -5,7 +5,6 @@ import android.content.res.ColorStateList; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.annotation.ColorRes; -import android.support.annotation.Nullable; import android.view.View; import net.osmand.plus.OsmandSettings; @@ -67,7 +66,7 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia if (listener != null) { OsmandSettings.CommonPreference pref = settings.COORDS_INPUT_TWO_DIGITS_LONGTITUDE; pref.set(!pref.get()); - listener.onTwoDigitsLongtitudeChanged(); + listener.onInputSettingsChanged(); } dismiss(); } @@ -113,7 +112,7 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia int format = (int) v.getTag(); settings.COORDS_INPUT_FORMAT.set(format); if (listener != null) { - listener.onFormatChanged(); + listener.onInputSettingsChanged(); } dismiss(); } @@ -150,12 +149,10 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia interface CoordinateInputFormatChangeListener { - void onTwoDigitsLongtitudeChanged(); - void onKeyboardChanged(); void onHandChanged(); - void onFormatChanged(); + void onInputSettingsChanged(); } } diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java index e10ca2afaf..b50f308e0d 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java @@ -846,11 +846,6 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm private CoordinateInputFormatChangeListener createCoordinateInputFormatChangeListener() { return new CoordinateInputFormatChangeListener() { - @Override - public void onTwoDigitsLongtitudeChanged() { - registerInputs(); - } - @Override public void onKeyboardChanged() { changeKeyboard(); @@ -862,7 +857,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm } @Override - public void onFormatChanged() { + public void onInputSettingsChanged() { registerInputs(); } };