mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-25 23:39:00 +03:00
Fix no text visible if using direct pin drawable
This commit is contained in:
parent
79212321a2
commit
bd473375a1
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
import androidx.core.graphics.drawable.toBitmap
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import com.airbnb.mvrx.args
|
import com.airbnb.mvrx.args
|
||||||
import com.airbnb.mvrx.fragmentViewModel
|
import com.airbnb.mvrx.fragmentViewModel
|
||||||
|
@ -180,7 +181,7 @@ class LocationLiveMapViewFragment : VectorBaseFragment<FragmentSimpleContainerBi
|
||||||
private fun addUserPinToMapStyle(userId: String, userPinDrawable: Drawable) {
|
private fun addUserPinToMapStyle(userId: String, userPinDrawable: Drawable) {
|
||||||
mapStyle?.let { style ->
|
mapStyle?.let { style ->
|
||||||
if (style.getImage(userId) == null) {
|
if (style.getImage(userId) == null) {
|
||||||
style.addImage(userId, userPinDrawable)
|
style.addImage(userId, userPinDrawable.toBitmap())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue