Skip to content
Snippets Groups Projects
Commit 727efab4 authored by Oliver Zimmerman's avatar Oliver Zimmerman
Browse files

Change getString to getText

parent 9fd51fb8
No related branches found
No related tags found
No related merge requests found
...@@ -23,11 +23,11 @@ constructor( ...@@ -23,11 +23,11 @@ constructor(
inflate(context, R.layout.view_test_result_section, this) inflate(context, R.layout.view_test_result_section, this)
context.withStyledAttributes(attrs, R.styleable.TestResultSection) { context.withStyledAttributes(attrs, R.styleable.TestResultSection) {
test_result_section_headline.text = test_result_section_headline.text =
getString(R.styleable.TestResultSection_test_result_section_headline) getText(R.styleable.TestResultSection_test_result_section_headline)
test_result_section_content.text = test_result_section_content.text =
SpannableString(getString(R.styleable.TestResultSection_test_result_section_content)) SpannableString(getText(R.styleable.TestResultSection_test_result_section_content))
test_result_section_registered_at_text.text = test_result_section_registered_at_text.text =
getString(R.styleable.TestResultSection_test_result_section_registered_at_text) getText(R.styleable.TestResultSection_test_result_section_registered_at_text)
val resultIconId = getResourceId(R.styleable.TestResultSection_test_result_section_status_icon, 0) val resultIconId = getResourceId(R.styleable.TestResultSection_test_result_section_status_icon, 0)
if (resultIconId != 0) { if (resultIconId != 0) {
val drawable = getDrawable(context, resultIconId) val drawable = getDrawable(context, resultIconId)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment