Skip to content

Commit

Permalink
handling OsmandMonitoringPlugin in IncludePreferenceInSearchResultsPr…
Browse files Browse the repository at this point in the history
…edicate
  • Loading branch information
KnollFrank committed Nov 6, 2024
1 parent af9597b commit 350c741
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import net.osmand.plus.plugins.PluginsHelper;
import net.osmand.plus.plugins.development.DevelopmentSettingsFragment;
import net.osmand.plus.plugins.development.OsmandDevelopmentPlugin;
import net.osmand.plus.plugins.monitoring.MonitoringSettingsFragment;
import net.osmand.plus.plugins.monitoring.OsmandMonitoringPlugin;

import de.KnollFrank.lib.settingssearch.db.preference.pojo.SearchablePreferencePOJO;

Expand All @@ -24,7 +26,12 @@ private static boolean isPreferenceConnectedToAnInactivePlugin(final SearchableP
preference,
hostOfPreference,
DevelopmentSettingsFragment.class,
OsmandDevelopmentPlugin.class);
OsmandDevelopmentPlugin.class) ||
isPreferenceConnectedToInactivePlugin(
preference,
hostOfPreference,
MonitoringSettingsFragment.class,
OsmandMonitoringPlugin.class);
}

private static boolean isPreferenceConnectedToInactivePlugin(
Expand Down

0 comments on commit 350c741

Please sign in to comment.