[Android] MapFragment null container fix

This commit is contained in:
Oguz Babaoglu
2015-12-17 15:51:17 +01:00
committed by Tobrun
parent 5c4ac72d5a
commit 9e90934438

View File

@@ -40,7 +40,7 @@ public class MapFragment extends Fragment {
mMap = (MapView) inflater.inflate(R.layout.fragment_mapview, container, false);
// Set accessToken
mMap.setAccessToken(ApiAccess.getToken(container.getContext()));
mMap.setAccessToken(ApiAccess.getToken(inflater.getContext()));
// Need to pass on any saved state to the map
mMap.onCreate(savedInstanceState);