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();
updateApplicationDirTextAndSummary();
applicationModePreference.setTitle(getString(R.string.settings_preset) + " [" + osmandSettings.APPLICATION_MODE.get() + "]");
}
private void updateTileSourceSummary() {
@ -474,7 +476,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
// summary = summary.substring(0, summary.lastIndexOf(':') + 1);
// }
// 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) {
@ -556,7 +558,6 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
getMyApplication().showDialogInitializingCommandPlayer(this, false);
}
} else if (listPref.getId().equals(osmandSettings.APPLICATION_MODE.getId())) {
applicationModePreference.setTitle(R.string.settings_preset + " [" + osmandSettings.APPLICATION_MODE.get() + "]");
updateAllSettings();
} else if (listPref.getId().equals(osmandSettings.PREFERRED_LOCALE.getId())) {
// restart application to update locale