Fix transliterate switch in map language dialog
This commit is contained in:
parent
7ac56c9359
commit
3de36e5eef
1 changed files with 2 additions and 1 deletions
|
@ -530,7 +530,7 @@ public class ConfigureMapMenu {
|
|||
TextView switchText = (TextView) v.findViewById(R.id.switchText);
|
||||
switchText.setText(activity.getString(R.string.translit_name_if_miss, txtValues[position]));
|
||||
SwitchCompat check = (SwitchCompat) v.findViewById(R.id.check);
|
||||
check.setChecked(settings.MAP_TRANSLITERATE_NAMES.isSet() ? transliterateNames : txtIds[position].equals("en"));
|
||||
check.setChecked(transliterateNames);
|
||||
check.setOnCheckedChangeListener(translitChangdListener);
|
||||
UiUtilities.setupCompoundButton(nightMode, selectedProfileColor, check);
|
||||
} else {
|
||||
|
@ -548,6 +548,7 @@ public class ConfigureMapMenu {
|
|||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
selectedLanguageIndex = which;
|
||||
transliterateNames = settings.MAP_TRANSLITERATE_NAMES.isSet() ? transliterateNames : txtIds[which].equals("en");
|
||||
((AlertDialog) dialog).getListView().setSelection(which);
|
||||
singleChoiceAdapter.notifyDataSetChanged();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue