add pref variable

This commit is contained in:
Chumva 2018-03-29 18:34:46 +03:00
parent 88c44dcc68
commit cae0f0ab34

View file

@ -56,8 +56,9 @@ public class CoordinateInputBottomSheetDialogFragment extends MenuBottomSheetDia
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (listener != null) { if (listener != null) {
settings.COORDS_INPUT_USE_OSMAND_KEYBOARD.set(!useOsmandKeyboard); OsmandSettings.CommonPreference<Boolean> pref = settings.COORDS_INPUT_USE_RIGHT_SIDE;
listener.onKeyboardChanged(!useOsmandKeyboard); pref.set(!pref.get());
listener.onKeyboardChanged(pref.get());
} }
dismiss(); dismiss();
} }