mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Fix no text visible if using direct pin drawable
This commit is contained in:
parent
79212321a2
commit
bd473375a1
@ -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…
Reference in New Issue
Block a user