correct settings bug

This commit is contained in:
sonora 2012-12-18 01:50:23 +01:00
parent 6618fe9438
commit 75bf853819

View file

@ -139,8 +139,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin implements MonitoringIn
cat = new PreferenceCategory(activity);
cat.setTitle(R.string.monitor_preferences);
PreferenceScreen generalSection = ((PreferenceScreen) screen.findPreference(SettingsActivity.SCREEN_ID_GENERAL_SETTINGS));
generalSection.addPreference(cat);
((PreferenceScreen) screen.findPreference(SettingsActivity.SCREEN_ID_GENERAL_SETTINGS)).addPreference(cat);
cat.addPreference(activity.createEditTextPreference(settings.LIVE_MONITORING_URL, R.string.live_monitoring_url,
R.string.live_monitoring_url_descr));
@ -160,8 +159,6 @@ public class OsmandMonitoringPlugin extends OsmandPlugin implements MonitoringIn
}
});
cat.addPreference(pref);
}
private void saveCurrentTracks(final SavingTrackHelper helper, final SettingsActivity activity) {