Update DashOsMoFragment.java

This commit is contained in:
vshcherb 2015-06-11 13:48:05 +02:00
parent 2fb14cc3cb
commit d5a7da07e5

View file

@ -73,16 +73,19 @@ public class DashOsMoFragment extends DashLocationFragment implements OsMoGroups
plugin = OsmandPlugin.getEnabledPlugin(OsMoPlugin.class); plugin = OsmandPlugin.getEnabledPlugin(OsMoPlugin.class);
if (plugin != null) { if (plugin != null) {
plugin.getGroups().addUiListeners(this); plugin.getGroups().addUiListeners(this);
plugin.setGroupsActivity(getActivity());
} }
setupOsMoView(); setupOsMoView();
plugin.setGroupsActivity(getActivity());
} }
@Override @Override
public void onDetach() { public void onDetach() {
super.onDetach(); super.onDetach();
if (plugin != null) {
plugin.setGroupsActivity(null); plugin.setGroupsActivity(null);
} }
}
@Override @Override
public void onDestroy() { public void onDestroy() {