Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #5859 - made CameraPostion generation safe
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Aug 5, 2016
1 parent f93a8f8 commit dddd98f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
public class CameraPositionActivity extends AppCompatActivity implements OnMapReadyCallback {

private MapView mapView;
private MapboxMap mapboxMap;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -52,6 +53,7 @@ protected void onCreate(Bundle savedInstanceState) {

@Override
public void onMapReady(@NonNull final MapboxMap mapboxMap) {
this.mapboxMap = mapboxMap;
// add a listener to FAB
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setColorFilter(ContextCompat.getColor(CameraPositionActivity.this, R.color.primary));
Expand Down

0 comments on commit dddd98f

Please sign in to comment.