Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
KnollFrank committed Dec 18, 2024
1 parent b0bae6f commit adeff6a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ public static Matcher<View> hasSearchResultWithSubstring(final String substring)
}

private void enablePlugin(final Class<? extends OsmandPlugin> plugin) {
PluginsHelper.enablePlugin(
null,
app,
getPlugin(plugin),
true);
enablePlugin(getPlugin(plugin));
}

private void enablePlugin(final OsmandPlugin plugin) {
PluginsHelper.enablePlugin(null, app, plugin, true);
}

private static <T extends OsmandPlugin> T getPlugin(final Class<T> plugin) {
Expand Down

0 comments on commit adeff6a

Please sign in to comment.