summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphilemonmerlet <philemon.merlet@gmail.com>2018-10-29 12:09:43 +0100
committertobrun <tobrun.van.nuland@gmail.com>2018-10-29 13:54:33 +0100
commit4d47bf66b5e20deff9c686e29c76f12c3771a13d (patch)
treee3488f7c08f63d8f5fc39b8001e451dcc81d2e31
parentfd814df4eda9c9d08c1720746cb2d9f1ea61217b (diff)
downloadqtlocation-mapboxgl-upstream/tvn-fragmentactivity.tar.gz
Fix a crash in MapView intializationupstream/tvn-fragmentactivity
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"