use of net.osmand.plus.plugins.development.OsmandDevelopmentPlugin in project Osmand by osmandapp.
the class DashPluginsFragment method addPluginsToLimit.
private void addPluginsToLimit(Iterator<OsmandPlugin> it, int l) {
while (plugins.size() < l && it.hasNext()) {
OsmandPlugin plugin = it.next();
if (plugin instanceof OsmandDevelopmentPlugin) {
continue;
}
plugins.add(plugin);
}
}
use of net.osmand.plus.plugins.development.OsmandDevelopmentPlugin in project Osmand by osmandapp.
the class ConfigureProfileFragment method setupResetToDefaultPref.
private void setupResetToDefaultPref() {
Preference resetToDefault = findPreference(RESET_TO_DEFAULT);
ApplicationMode mode = getSelectedAppMode();
if (mode.isCustomProfile() && !getBackupFileForCustomMode(app, mode.getStringKey()).exists()) {
resetToDefault.setVisible(false);
} else {
OsmandDevelopmentPlugin plugin = OsmandPlugin.getActivePlugin(OsmandDevelopmentPlugin.class);
if (plugin != null && mode.getParent() != null) {
String baseProfile = "(" + mode.getParent().toHumanString() + ")";
String title = getString(R.string.ltr_or_rtl_combine_via_space, getString(R.string.reset_to_default), baseProfile);
resetToDefault.setTitle(title);
}
resetToDefault.setIcon(app.getUIUtilities().getIcon(R.drawable.ic_action_reset_to_default_dark, ColorUtilities.getActiveColorId(isNightMode())));
}
}
use of net.osmand.plus.plugins.development.OsmandDevelopmentPlugin in project Osmand by osmandapp.
the class OsmandPlugin method initPlugins.
public static void initPlugins(@NonNull OsmandApplication app) {
Set<String> enabledPlugins = app.getSettings().getEnabledPlugins();
allPlugins.clear();
allPlugins.add(new WikipediaPlugin(app));
allPlugins.add(new OsmandRasterMapsPlugin(app));
allPlugins.add(new OsmandMonitoringPlugin(app));
checkMarketPlugin(app, new SRTMPlugin(app));
checkMarketPlugin(app, new NauticalMapsPlugin(app));
checkMarketPlugin(app, new SkiMapsPlugin(app));
allPlugins.add(new AudioVideoNotesPlugin(app));
checkMarketPlugin(app, new ParkingPositionPlugin(app));
allPlugins.add(new OsmEditingPlugin(app));
allPlugins.add(new OpenPlaceReviewsPlugin(app));
allPlugins.add(new MapillaryPlugin(app));
allPlugins.add(new AccessibilityPlugin(app));
allPlugins.add(new OsmandDevelopmentPlugin(app));
loadCustomPlugins(app);
registerAppInitializingDependedProperties(app);
enablePluginsByDefault(app, enabledPlugins);
activatePlugins(app, enabledPlugins);
}
Aggregations