Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add comment to finish later

  • Loading branch information...
commit e2e978783d6f5bc506fa23fecf0be745298e2927 1 parent 1d88400
sonora authored
9 OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java
@@ -487,14 +487,15 @@ public void updateAllSettings(){
487 487 routerServicePreference.setSummary(getString(R.string.router_service_descr) + " [" + osmandSettings.ROUTER_SERVICE.get() + "]");
488 488
489 489 /*
  490 + // TODO: Add Profile name to screen title (only, not to Preference title) of Profile specific settings
490 491 PreferenceScreen screen = getPreferenceScreen();
491   - if (screen.getTitle().startsWith(getString(R.string.rendering_settings))) {
  492 + if (screen.getKey().toString().equals("map_settings")) {
492 493 screen.setTitle(getString(R.string.rendering_settings) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
493   - } else if (screen.getTitle().startsWith(getString(R.string.appearance_settings))) {
  494 + } else if (screen.getKey().toString().equals("appearance_settings")) {
494 495 screen.setTitle(getString(R.string.appearance_settings) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
495   - } else if (screen.getTitle().startsWith(getString(R.string.monitor_preferences))) {
  496 + } else if (screen.getKey().toString().equals("monitor_settings")) {
496 497 screen.setTitle(getString(R.string.monitor_preferences) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
497   - } else if (screen.getTitle().startsWith(getString(R.string.routing_settings))) {
  498 + } else if (screen.getKey().toString().equals("routing_settings")) {
498 499 screen.setTitle(getString(R.string.routing_settings) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
499 500 }
500 501 */

0 comments on commit e2e9787

Please sign in to comment.
Something went wrong with that request. Please try again.