Skip to content

Commit

Permalink
Add the documentation to attrs.xml
Browse files Browse the repository at this point in the history
This was co-authored by Copilot
  • Loading branch information
Gowsky committed Nov 18, 2024
1 parent a60f4b8 commit c357b92
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ internal fun TypedArray.getComponent(context: Context): Component? = use { array

val layeredComponent =
when {
hasValue(R.styleable.ComponentStyle_overlayingComponentStyle) ->
getNestedTypedArray(
context = context,
resourceId = R.styleable.ComponentStyle_overlayingComponentStyle,
styleableResourceId = R.styleable.ComponentStyle,
)
.getComponent(context)
hasValue(R.styleable.ComponentStyle_layeredComponentStyle) ->
getNestedTypedArray(
context = context,
Expand Down Expand Up @@ -109,12 +102,7 @@ internal fun TypedArray.getComponent(context: Context): Component? = use { array
getRawDimension(
context = context,
index = R.styleable.ComponentStyle_layeredComponentPadding,
defaultValue =
getRawDimension(
context = context,
index = R.styleable.ComponentStyle_overlayingComponentPadding,
defaultValue = 0f,
),
defaultValue = 0f,
)
),
)
Expand Down
Loading

0 comments on commit c357b92

Please sign in to comment.