diff --git a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java index dedce82ed6..e0914da79a 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/OsmandMonitoringPlugin.java @@ -138,11 +138,10 @@ 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)); + R.string.live_monitoring_url_descr)); Preference pref = new Preference(activity); pref.setTitle(R.string.save_current_track); @@ -160,8 +159,6 @@ public class OsmandMonitoringPlugin extends OsmandPlugin implements MonitoringIn } }); cat.addPreference(pref); - - } private void saveCurrentTracks(final SavingTrackHelper helper, final SettingsActivity activity) {