Update DashOsMoFragment.java
This commit is contained in:
parent
2fb14cc3cb
commit
d5a7da07e5
1 changed files with 5 additions and 2 deletions
|
@ -73,15 +73,18 @@ public class DashOsMoFragment extends DashLocationFragment implements OsMoGroups
|
|||
plugin = OsmandPlugin.getEnabledPlugin(OsMoPlugin.class);
|
||||
if (plugin != null) {
|
||||
plugin.getGroups().addUiListeners(this);
|
||||
plugin.setGroupsActivity(getActivity());
|
||||
}
|
||||
setupOsMoView();
|
||||
plugin.setGroupsActivity(getActivity());
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDetach() {
|
||||
super.onDetach();
|
||||
plugin.setGroupsActivity(null);
|
||||
if (plugin != null) {
|
||||
plugin.setGroupsActivity(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue