Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit 0500525

Browse files
committed
Merge pull request #66 from fossasia/msk/fixes/map_bug
Closes #63 don't attach the layout to the container view. More info h…
2 parents eb43403 + 212e1d7 commit 0500525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/fdroid/java/org/fossasia/openevent/fragments/OSMapFragment.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void onCreate(Bundle savedInstanceState) {
4141
@Override
4242
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
4343

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

71-
return super.onCreateView(inflater, container, savedInstanceState);
71+
return rootView;
7272
}
7373

7474

0 commit comments

Comments
 (0)