Use context.obtainStyledAttributes instead of context.theme.obtainStyledAttributes
This commit is contained in:
parent
47960c0dfd
commit
0750e80f04
@ -61,7 +61,7 @@ class MapTilerMapView @JvmOverloads constructor(
|
|||||||
private var dimensionConverter: DimensionConverter? = null
|
private var dimensionConverter: DimensionConverter? = null
|
||||||
|
|
||||||
init {
|
init {
|
||||||
context.theme.obtainStyledAttributes(
|
context.obtainStyledAttributes(
|
||||||
attrs,
|
attrs,
|
||||||
R.styleable.MapTilerMapView,
|
R.styleable.MapTilerMapView,
|
||||||
0,
|
0,
|
||||||
|
@ -40,7 +40,7 @@ class LocationLiveEndedBannerView @JvmOverloads constructor(
|
|||||||
)
|
)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
context.theme.obtainStyledAttributes(
|
context.obtainStyledAttributes(
|
||||||
attrs,
|
attrs,
|
||||||
R.styleable.LocationLiveEndedBannerView,
|
R.styleable.LocationLiveEndedBannerView,
|
||||||
0,
|
0,
|
||||||
|
@ -46,7 +46,7 @@ class LocationSharingOptionView @JvmOverloads constructor(
|
|||||||
)
|
)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
context.theme.obtainStyledAttributes(
|
context.obtainStyledAttributes(
|
||||||
attrs,
|
attrs,
|
||||||
R.styleable.LocationSharingOptionView,
|
R.styleable.LocationSharingOptionView,
|
||||||
0,
|
0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user