From 3a5c139759c7cf861bf915954690d0340165d900 Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Fri, 29 Jul 2022 10:14:00 +0200 Subject: [PATCH 1/2] Converting drawable to bitmap for map symbol to fix invisible text --- .../java/im/vector/app/features/location/MapTilerMapView.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/location/MapTilerMapView.kt b/vector/src/main/java/im/vector/app/features/location/MapTilerMapView.kt index 491386ba64..fafde0c866 100644 --- a/vector/src/main/java/im/vector/app/features/location/MapTilerMapView.kt +++ b/vector/src/main/java/im/vector/app/features/location/MapTilerMapView.kt @@ -23,6 +23,7 @@ import android.view.Gravity import android.widget.ImageView import androidx.core.content.ContextCompat import androidx.core.content.res.use +import androidx.core.graphics.drawable.toBitmap import androidx.core.view.marginBottom import androidx.core.view.marginTop import androidx.core.view.updateLayoutParams @@ -162,7 +163,7 @@ class MapTilerMapView @JvmOverloads constructor( pinDrawable?.let { drawable -> if (!safeMapRefs.style.isFullyLoaded || safeMapRefs.style.getImage(state.pinId) == null) { - safeMapRefs.style.addImage(state.pinId, drawable) + safeMapRefs.style.addImage(state.pinId, drawable.toBitmap()) } } From 79ea66890fecca87108c8128a6839632059fc481 Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Fri, 29 Jul 2022 10:20:32 +0200 Subject: [PATCH 2/2] Adding changelog entry --- changelog.d/6687.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/6687.bugfix diff --git a/changelog.d/6687.bugfix b/changelog.d/6687.bugfix new file mode 100644 index 0000000000..9b92efdffe --- /dev/null +++ b/changelog.d/6687.bugfix @@ -0,0 +1 @@ +[Location sharing] Invisible text on map symbol