Permalink
Browse files

add comment to finish later

  • Loading branch information...
1 parent 1d88400 commit e2e978783d6f5bc506fa23fecf0be745298e2927 sonora committed Feb 24, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java
View
9 OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java
@@ -487,14 +487,15 @@ public void updateAllSettings(){
routerServicePreference.setSummary(getString(R.string.router_service_descr) + " [" + osmandSettings.ROUTER_SERVICE.get() + "]");
/*
+ // TODO: Add Profile name to screen title (only, not to Preference title) of Profile specific settings
PreferenceScreen screen = getPreferenceScreen();
- if (screen.getTitle().startsWith(getString(R.string.rendering_settings))) {
+ if (screen.getKey().toString().equals("map_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))) {
+ } else if (screen.getKey().toString().equals("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_preferences))) {
+ } else if (screen.getKey().toString().equals("monitor_settings")) {
screen.setTitle(getString(R.string.monitor_preferences) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
- } else if (screen.getTitle().startsWith(getString(R.string.routing_settings))) {
+ } else if (screen.getKey().toString().equals("routing_settings")) {
screen.setTitle(getString(R.string.routing_settings) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
}
*/

0 comments on commit e2e9787

Please sign in to comment.