change name of OsmandPreference

This commit is contained in:
Chumva 2018-03-29 18:29:40 +03:00
parent a7a846130d
commit 88c44dcc68
3 changed files with 4 additions and 4 deletions

View file

@ -721,7 +721,7 @@ public class OsmandSettings {
public final CommonPreference<Boolean> COORDS_INPUT_USE_RIGHT_SIDE = new BooleanPreference("coords_input_use_right_side", true).makeGlobal();
public final CommonPreference<Integer> COORDS_INPUT_FORMAT = new IntPreference("coords_input_format", CoordinateInputFormats.DD_MM_MMM);
public final OsmandPreference<Boolean> COORDS_USE_OSMAND_KEYBOARD = new BooleanPreference("coords_use_osmand_keyboard", true).makeGlobal();
public final OsmandPreference<Boolean> COORDS_INPUT_USE_OSMAND_KEYBOARD = new BooleanPreference("coords_use_osmand_keyboard", true).makeGlobal();
public final CommonPreference<Boolean> USE_MAPILLARY_FILTER = new BooleanPreference("use_mapillary_filters", false).makeGlobal();
public final CommonPreference<String> MAPILLARY_FILTER_USER_KEY = new StringPreference("mapillary_filter_user_key", "").makeGlobal();

View file

@ -37,7 +37,7 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
useOsmandKeyboard = getMyApplication().getSettings().COORDS_USE_OSMAND_KEYBOARD.get();
useOsmandKeyboard = getMyApplication().getSettings().COORDS_INPUT_USE_OSMAND_KEYBOARD.get();
}
@Override
@ -56,9 +56,9 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia
@Override
public void onClick(View v) {
if (listener != null) {
settings.COORDS_INPUT_USE_OSMAND_KEYBOARD.set(!useOsmandKeyboard);
listener.onKeyboardChanged(!useOsmandKeyboard);
}
settings.COORDS_USE_OSMAND_KEYBOARD.set(!useOsmandKeyboard);
dismiss();
}
})

View file

@ -453,7 +453,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
super.onResume();
adapter.setScreenOrientation(DashLocationFragment.getScreenOrientation(getActivity()));
startLocationUpdate();
changeKeyboard(getMyApplication().getSettings().COORDS_USE_OSMAND_KEYBOARD.get());
changeKeyboard(getMyApplication().getSettings().COORDS_INPUT_USE_OSMAND_KEYBOARD.get());
}
@Override