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

Commit

Permalink
Fix a crash in MapView intialization
Browse files Browse the repository at this point in the history
app:srcCompat should be used with AppCompatImageViews. Otherwise the image may not be set, which causes a crash in MapView initialization
  • Loading branch information
philemonmerlet authored and tobrun committed Oct 29, 2018
1 parent fd814df commit 4d47bf6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
android:layout_height="wrap_content"
android:contentDescription="@string/mapbox_compassContentDescription"/>

<ImageView
<android.support.v7.widget.AppCompatImageView
android:visibility="gone"
android:id="@+id/logoView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@null"
app:srcCompat="@drawable/mapbox_logo_icon"/>

<ImageView
<android.support.v7.widget.AppCompatImageView
android:visibility="gone"
android:id="@+id/attributionView"
android:layout_width="wrap_content"
Expand Down

0 comments on commit 4d47bf6

Please sign in to comment.