display tracking settings in global section

This commit is contained in:
sonora 2012-06-11 15:38:34 +02:00
parent bb6748dbba
commit 2ab6ae84b0

View file

@ -34,9 +34,9 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
@Override @Override
public boolean init(OsmandApplication app) { public boolean init(OsmandApplication app) {
settings = app.getSettings(); settings = app.getSettings();
settings.SAVE_TRACK_TO_GPX.setModeDefaultValue(ApplicationMode.CAR, true); //settings.SAVE_TRACK_TO_GPX.setModeDefaultValue(ApplicationMode.CAR, true);
settings.SAVE_TRACK_TO_GPX.setModeDefaultValue(ApplicationMode.BICYCLE, true); //settings.SAVE_TRACK_TO_GPX.setModeDefaultValue(ApplicationMode.BICYCLE, true);
settings.SAVE_TRACK_TO_GPX.setModeDefaultValue(ApplicationMode.PEDESTRIAN, true); //settings.SAVE_TRACK_TO_GPX.setModeDefaultValue(ApplicationMode.PEDESTRIAN, true);
return true; return true;
} }
@ -83,7 +83,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin {
grp.setTitle(R.string.monitor_preferences); grp.setTitle(R.string.monitor_preferences);
grp.setSummary(R.string.monitor_preferences_descr); grp.setSummary(R.string.monitor_preferences_descr);
grp.setKey("monitor_settings"); grp.setKey("monitor_settings");
((PreferenceCategory) screen.findPreference("profile_dep_cat")).addPreference(grp); ((PreferenceCategory) screen.findPreference("global_settings")).addPreference(grp);
PreferenceCategory cat = new PreferenceCategory(activity); PreferenceCategory cat = new PreferenceCategory(activity);
cat.setTitle(R.string.save_track_to_gpx); cat.setTitle(R.string.save_track_to_gpx);