Skip to content

Commit

Permalink
APPS-7229 Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
gmerinojimenez committed Oct 13, 2020
1 parent a326bac commit 63aa6b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import com.telefonica.mistica.util.getThemeColor
),
BindingMethod(
type = HeaderView::class,
attribute = "headerNumeralHasDangerColor",
attribute = "headerNumeralHasErrorColor",
method = "setNumeralHasDangerColor"
),
BindingMethod(
Expand Down Expand Up @@ -163,7 +163,7 @@ class HeaderView @JvmOverloads constructor(

numeralTextView.setTextAndVisibility(styledAttrs.getText(R.styleable.HeaderView_headerNumeral))
numeralHasDangerColor =
styledAttrs.getBoolean(R.styleable.HeaderView_headerNumeralHasDangerColor, false)
styledAttrs.getBoolean(R.styleable.HeaderView_headerNumeralHasErrorColor, false)

actionButton.setTextAndVisibility(styledAttrs.getText(R.styleable.HeaderView_headerActionButtonText))
secondaryActionButton.setTextAndVisibility(styledAttrs.getText(R.styleable.HeaderView_headerSecondaryActionButtonText))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Implemented as a custom view, `com.telefonica.mistica.header.HeaderView` can be
<attr name="headerSecondPretitle" format="string"/>
<attr name="headerSecondPretitleHasSecondaryColor" format="boolean"/>
<attr name="headerNumeral" format="string"/>
<attr name="headerNumeralHasDangerColor" format="boolean"/>
<attr name="headerNumeralHasErrorColor" format="boolean"/>
<attr name="headerActionButtonText" format="string"/>
<attr name="headerSecondaryActionButtonText" format="string"/>
<attr name="headerActionButtonOnClick" format="string"/>
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/res/values/attrs_components.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<attr name="headerSecondPretitle" format="string" />
<attr name="headerSecondPretitleHasSecondaryColor" format="boolean" />
<attr name="headerNumeral" format="string" />
<attr name="headerNumeralHasDangerColor" format="boolean" />
<attr name="headerNumeralHasErrorColor" format="boolean" />
<attr name="headerActionButtonText" format="string" />
<attr name="headerSecondaryActionButtonText" format="string" />
<attr name="headerActionButtonOnClick" format="string" />
Expand Down

0 comments on commit 63aa6b3

Please sign in to comment.