delete onTwoDigitsLongtitudeChanged and rename onFormatChanged listener methods
This commit is contained in:
parent
abe4e9f1be
commit
0e9b4723de
2 changed files with 4 additions and 12 deletions
|
@ -5,7 +5,6 @@ import android.content.res.ColorStateList;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.annotation.ColorRes;
|
import android.support.annotation.ColorRes;
|
||||||
import android.support.annotation.Nullable;
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
import net.osmand.plus.OsmandSettings;
|
import net.osmand.plus.OsmandSettings;
|
||||||
|
@ -67,7 +66,7 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia
|
||||||
if (listener != null) {
|
if (listener != null) {
|
||||||
OsmandSettings.CommonPreference<Boolean> pref = settings.COORDS_INPUT_TWO_DIGITS_LONGTITUDE;
|
OsmandSettings.CommonPreference<Boolean> pref = settings.COORDS_INPUT_TWO_DIGITS_LONGTITUDE;
|
||||||
pref.set(!pref.get());
|
pref.set(!pref.get());
|
||||||
listener.onTwoDigitsLongtitudeChanged();
|
listener.onInputSettingsChanged();
|
||||||
}
|
}
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
|
@ -113,7 +112,7 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia
|
||||||
int format = (int) v.getTag();
|
int format = (int) v.getTag();
|
||||||
settings.COORDS_INPUT_FORMAT.set(format);
|
settings.COORDS_INPUT_FORMAT.set(format);
|
||||||
if (listener != null) {
|
if (listener != null) {
|
||||||
listener.onFormatChanged();
|
listener.onInputSettingsChanged();
|
||||||
}
|
}
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
|
@ -150,12 +149,10 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia
|
||||||
|
|
||||||
interface CoordinateInputFormatChangeListener {
|
interface CoordinateInputFormatChangeListener {
|
||||||
|
|
||||||
void onTwoDigitsLongtitudeChanged();
|
|
||||||
|
|
||||||
void onKeyboardChanged();
|
void onKeyboardChanged();
|
||||||
|
|
||||||
void onHandChanged();
|
void onHandChanged();
|
||||||
|
|
||||||
void onFormatChanged();
|
void onInputSettingsChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -846,11 +846,6 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
private CoordinateInputFormatChangeListener createCoordinateInputFormatChangeListener() {
|
private CoordinateInputFormatChangeListener createCoordinateInputFormatChangeListener() {
|
||||||
return new CoordinateInputFormatChangeListener() {
|
return new CoordinateInputFormatChangeListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onTwoDigitsLongtitudeChanged() {
|
|
||||||
registerInputs();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onKeyboardChanged() {
|
public void onKeyboardChanged() {
|
||||||
changeKeyboard();
|
changeKeyboard();
|
||||||
|
@ -862,7 +857,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFormatChanged() {
|
public void onInputSettingsChanged() {
|
||||||
registerInputs();
|
registerInputs();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue