diff options
author | philemonmerlet <philemon.merlet@gmail.com> | 2018-10-29 12:09:43 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-11-01 12:08:32 +0100 |
commit | b4291eddbd729ad0f0f772a3b7f68ec67321718f (patch) | |
tree | 68161ff35a459779dccff9fbc7db6f5b272132f2 | |
parent | 6d916d2cbf709d809df73c59824146839a8552c8 (diff) | |
download | qtlocation-mapboxgl-b4291eddbd729ad0f0f772a3b7f68ec67321718f.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.xml | 4 |
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" |