mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 19:05:56 +03:00
Merge pull request #6688 from vector-im/fix/mna/missing-text-on-map-symbol
[Location sharing] Invisible text on map symbol
This commit is contained in:
commit
a53de92b10
2 changed files with 3 additions and 1 deletions
1
changelog.d/6687.bugfix
Normal file
1
changelog.d/6687.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
[Location sharing] Invisible text on map symbol
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue