mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
Update raw mapview sample for new lifecycle changes
Change-Id: I943235a9dc491266aeeec6cdcf7398d04289f32b
This commit is contained in:
parent
0a41a48b19
commit
0ddfe58552
@ -50,6 +50,18 @@ public class RawMapViewDemoActivity extends AppCompatActivity implements OnMapRe
|
||||
mMapView.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
mMapView.onStart();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
mMapView.onStop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMapReady(GoogleMap map) {
|
||||
map.addMarker(new MarkerOptions().position(new LatLng(0, 0)).title("Marker"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user