Use context.obtainStyledAttributes instead of context.theme.obtainStyledAttributes

This commit is contained in:
Maxime NATUREL 2022-07-27 11:04:14 +02:00
parent 47960c0dfd
commit 0750e80f04
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ class MapTilerMapView @JvmOverloads constructor(
private var dimensionConverter: DimensionConverter? = null
init {
context.theme.obtainStyledAttributes(
context.obtainStyledAttributes(
attrs,
R.styleable.MapTilerMapView,
0,

View file

@ -40,7 +40,7 @@ class LocationLiveEndedBannerView @JvmOverloads constructor(
)
init {
context.theme.obtainStyledAttributes(
context.obtainStyledAttributes(
attrs,
R.styleable.LocationLiveEndedBannerView,
0,

View file

@ -46,7 +46,7 @@ class LocationSharingOptionView @JvmOverloads constructor(
)
init {
context.theme.obtainStyledAttributes(
context.obtainStyledAttributes(
attrs,
R.styleable.LocationSharingOptionView,
0,