mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Fixing dark/light loading of the correct map drawable
This commit is contained in:
parent
7f43a1bb06
commit
4a817fd9f5
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue