Skip to content

Commit

Permalink
Add addPlugin method to BridgeFragment. Remove init method to prevent…
Browse files Browse the repository at this point in the history
… duplicate calls to init.
  • Loading branch information
fkirc committed Jul 20, 2020
1 parent a1dc5fa commit 385fc6b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ protected void init(Bundle savedInstanceState) {
loadConfig(this.getActivity().getApplicationContext(), this.getActivity());
}

protected void init(Bundle savedInstanceState, List<Class<? extends Plugin>> plugins) {
this.initialPlugins = plugins;
init(savedInstanceState);
public void addPlugin(Class<? extends Plugin> plugin) {
this.initialPlugins.add(plugin);
}

/**
Expand Down

0 comments on commit 385fc6b

Please sign in to comment.