Skip to content

Commit

Permalink
refactor rename map view id included in navigation view from mapView …
Browse files Browse the repository at this point in the history
…to navigationMapView to avoid clashes when including navigation view and map view in the same layout (#1087)
  • Loading branch information
Guardiola31337 authored Jul 5, 2018
1 parent 468a931 commit d09ec1f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private ImageView updateScreenshotViewWithSnapshot(Bitmap snapshot) {
}

private void updateFeedbackScreenshot() {
MapView mapView = navigationView.findViewById(R.id.mapView);
MapView mapView = navigationView.findViewById(R.id.navigationMapView);
mapView.setVisibility(View.INVISIBLE);
Bitmap capture = ViewUtils.captureView(mapView);
String encoded = ViewUtils.encodeView(capture);
Expand All @@ -44,7 +44,7 @@ private void updateFeedbackScreenshot() {

private void resetViewVisibility(ImageView screenshotView) {
screenshotView.setVisibility(View.INVISIBLE);
MapView mapView = navigationView.findViewById(R.id.mapView);
MapView mapView = navigationView.findViewById(R.id.navigationMapView);
mapView.setVisibility(View.VISIBLE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ private void initializeView() {
}

private void bind() {
mapView = findViewById(R.id.mapView);
mapView = findViewById(R.id.navigationMapView);
instructionView = findViewById(R.id.instructionView);
summaryBottomSheet = findViewById(R.id.summaryBottomSheet);
cancelBtn = findViewById(R.id.cancelBtn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:orientation="vertical">

<com.mapbox.mapboxsdk.maps.MapView
android:id="@+id/mapView"
android:id="@+id/navigationMapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:mapbox_uiAttribution="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:orientation="vertical">

<com.mapbox.mapboxsdk.maps.MapView
android:id="@+id/mapView"
android:id="@+id/navigationMapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:mapbox_uiAttribution="false"
Expand Down

0 comments on commit d09ec1f

Please sign in to comment.