Fix live location render crash for Android < 7
Bring back proper implementation from 9ef870b927
, probably gone due to mismerge?
Change-Id: I198488e57d9b800cee303373372b1fd165ddf7f1
This commit is contained in:
parent
9e7916ff47
commit
1b8cef9678
|
@ -55,8 +55,10 @@ class DefaultLiveLocationShareStatusItem : LiveLocationShareStatusItem {
|
|||
width = mapWidth
|
||||
height = mapHeight
|
||||
}
|
||||
// Yes, usually one would do this using drawable-v24... which glide seems to ignore?
|
||||
val resource = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) R.drawable.bg_no_location_map_themed else R.drawable.bg_no_location_map
|
||||
GlideApp.with(mapImageView)
|
||||
.load(ContextCompat.getDrawable(mapImageView.context, R.drawable.bg_no_location_map_themed))
|
||||
.load(ContextCompat.getDrawable(mapImageView.context, resource))
|
||||
.transform(MultiTransformation(CenterCrop(), mapCornerTransformation))
|
||||
.into(mapImageView)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue