Include Profile name in PreferenceScreen title
This commit is contained in:
parent
e8be093d52
commit
776aa02744
1 changed files with 11 additions and 0 deletions
|
@ -485,6 +485,17 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
applicationModePreference.setTitle(getString(R.string.settings_preset) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
|
||||
dayNightModePreference.setSummary(getString(R.string.daynight_descr) + " [" + osmandSettings.DAYNIGHT_MODE.get().toHumanString(this) + "]");
|
||||
routerServicePreference.setSummary(getString(R.string.router_service_descr) + " [" + osmandSettings.ROUTER_SERVICE.get() + "]");
|
||||
|
||||
PreferenceScreen screen = getPreferenceScreen()
|
||||
if (screen.getTitle().startsWith(getString(R.string.rendering_settings)) {
|
||||
screen.setTitle(getString(R.string.rendering_settings) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
|
||||
} else if (screen.getTitle().startsWith(getString(R.string.appearance_settings)) {
|
||||
screen.setTitle(getString(R.string.appearance_settings) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
|
||||
} else if (screen.getTitle().startsWith(getString(R.string.monitor_settings)) {
|
||||
screen.setTitle(getString(R.string.monitor_settings) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
|
||||
} else if (screen.getTitle().startsWith(getString(R.string.routing_settings)) {
|
||||
screen.setTitle(getString(R.string.routing_settings) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
|
||||
}
|
||||
}
|
||||
|
||||
private void updateTileSourceSummary() {
|
||||
|
|
Loading…
Reference in a new issue