diff --git a/vector/src/main/java/im/vector/app/features/location/MapTilerMapView.kt b/vector/src/main/java/im/vector/app/features/location/MapTilerMapView.kt index cc41ff696f..491386ba64 100644 --- a/vector/src/main/java/im/vector/app/features/location/MapTilerMapView.kt +++ b/vector/src/main/java/im/vector/app/features/location/MapTilerMapView.kt @@ -61,7 +61,7 @@ class MapTilerMapView @JvmOverloads constructor( private var dimensionConverter: DimensionConverter? = null init { - context.theme.obtainStyledAttributes( + context.obtainStyledAttributes( attrs, R.styleable.MapTilerMapView, 0, diff --git a/vector/src/main/java/im/vector/app/features/location/live/LocationLiveEndedBannerView.kt b/vector/src/main/java/im/vector/app/features/location/live/LocationLiveEndedBannerView.kt index 7a2671d800..82fa17a625 100644 --- a/vector/src/main/java/im/vector/app/features/location/live/LocationLiveEndedBannerView.kt +++ b/vector/src/main/java/im/vector/app/features/location/live/LocationLiveEndedBannerView.kt @@ -40,7 +40,7 @@ class LocationLiveEndedBannerView @JvmOverloads constructor( ) init { - context.theme.obtainStyledAttributes( + context.obtainStyledAttributes( attrs, R.styleable.LocationLiveEndedBannerView, 0, diff --git a/vector/src/main/java/im/vector/app/features/location/option/LocationSharingOptionView.kt b/vector/src/main/java/im/vector/app/features/location/option/LocationSharingOptionView.kt index 63dd8c9744..a4bc694aaf 100644 --- a/vector/src/main/java/im/vector/app/features/location/option/LocationSharingOptionView.kt +++ b/vector/src/main/java/im/vector/app/features/location/option/LocationSharingOptionView.kt @@ -46,7 +46,7 @@ class LocationSharingOptionView @JvmOverloads constructor( ) init { - context.theme.obtainStyledAttributes( + context.obtainStyledAttributes( attrs, R.styleable.LocationSharingOptionView, 0,