summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphilemonmerlet <philemon.merlet@gmail.com>2018-10-29 12:09:43 +0100
committerTobrun <tobrun@mapbox.com>2018-10-29 16:38:00 +0100
commit200ba355b58b7f74c397d496bed1deff1b394582 (patch)
tree80d61f621f80e608ed1edfa15e26c5a455ad949e
parentc7b417e24747dbe9a0dbdf698dbba9776f66bcdb (diff)
downloadqtlocation-mapboxgl-200ba355b58b7f74c397d496bed1deff1b394582.tar.gz
Fix a crash in MapView intialization
app:srcCompat should be used with AppCompatImageViews. Otherwise the image may not be set, which causes a crash in MapView initialization
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml b/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml
index e7644373fd..bd3eb92081 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml
+++ b/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml
@@ -14,7 +14,7 @@
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"
@@ -22,7 +22,7 @@
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"