Display Current User Profile: fix string bug

This commit is contained in:
sonora 2012-01-18 00:44:12 +01:00
parent 793151f324
commit cd182c3dcf

View file

@ -461,6 +461,8 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
updateTileSourceSummary(); updateTileSourceSummary();
updateApplicationDirTextAndSummary(); updateApplicationDirTextAndSummary();
applicationModePreference.setTitle(getString(R.string.settings_preset) + " [" + osmandSettings.APPLICATION_MODE.get() + "]");
} }
private void updateTileSourceSummary() { private void updateTileSourceSummary() {
@ -474,7 +476,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
// summary = summary.substring(0, summary.lastIndexOf(':') + 1); // summary = summary.substring(0, summary.lastIndexOf(':') + 1);
// } // }
// tileSourcePreference.setSummary(summary + mapName); // tileSourcePreference.setSummary(summary + mapName);
tileSourcePreference.setSummary(R.string.map_tile_source_descr + " [" + osmandSettings.MAP_TILE_SOURCES.get() + "]"); tileSourcePreference.setSummary(getString(R.string.map_tile_source_descr) + " [" + osmandSettings.MAP_TILE_SOURCES.get() + "]");
} }
private void fillTileSourcesToPreference(ListPreference tileSourcePreference, String value, boolean addNone) { private void fillTileSourcesToPreference(ListPreference tileSourcePreference, String value, boolean addNone) {
@ -556,7 +558,6 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
getMyApplication().showDialogInitializingCommandPlayer(this, false); getMyApplication().showDialogInitializingCommandPlayer(this, false);
} }
} else if (listPref.getId().equals(osmandSettings.APPLICATION_MODE.getId())) { } else if (listPref.getId().equals(osmandSettings.APPLICATION_MODE.getId())) {
applicationModePreference.setTitle(R.string.settings_preset + " [" + osmandSettings.APPLICATION_MODE.get() + "]");
updateAllSettings(); updateAllSettings();
} else if (listPref.getId().equals(osmandSettings.PREFERRED_LOCALE.getId())) { } else if (listPref.getId().equals(osmandSettings.PREFERRED_LOCALE.getId())) {
// restart application to update locale // restart application to update locale