mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fixing dark/light loading of the correct map drawable
This commit is contained in:
parent
7f43a1bb06
commit
4a817fd9f5
@ -19,6 +19,7 @@ package im.vector.app.features.home.room.detail.timeline.item
|
||||
import android.content.res.Resources
|
||||
import android.graphics.drawable.ColorDrawable
|
||||
import android.widget.ImageView
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.view.updateLayoutParams
|
||||
import com.bumptech.glide.load.MultiTransformation
|
||||
import com.bumptech.glide.load.resource.bitmap.CenterCrop
|
||||
@ -52,7 +53,7 @@ class DefaultLiveLocationShareStatusItem : LiveLocationShareStatusItem {
|
||||
height = mapHeight
|
||||
}
|
||||
GlideApp.with(mapImageView)
|
||||
.load(R.drawable.bg_no_location_map)
|
||||
.load(ContextCompat.getDrawable(mapImageView.context, R.drawable.bg_no_location_map))
|
||||
.transform(MultiTransformation(CenterCrop(), mapCornerTransformation))
|
||||
.into(mapImageView)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user