Skip to content

Commit

Permalink
Closes #63 don't attach the layout to the container view. More info h…
Browse files Browse the repository at this point in the history
  • Loading branch information
creativepsyco committed Aug 7, 2015
1 parent eb43403 commit 212e1d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void onCreate(Bundle savedInstanceState) {
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

View rootView = inflater.inflate(R.layout.fragment_map, container);
View rootView = inflater.inflate(R.layout.fragment_map, null);
mapView = (MapView) rootView.findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
mapView.setMultiTouchControls(true);
Expand All @@ -68,7 +68,7 @@ public boolean onItemLongPress(int index, OverlayItem item) {
}, new DefaultResourceProxyImpl(getActivity())));
mapView.invalidate();

return super.onCreateView(inflater, container, savedInstanceState);
return rootView;
}


Expand Down

0 comments on commit 212e1d7

Please sign in to comment.