Skip to content
Snippets Groups Projects
Verified Commit efc153b7 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes critical crashing bug on older devices in v1.0.7

parent 2b2e1e81
Branches
Tags v1.0.8
No related merge requests found
Pipeline #323 canceled
......@@ -39,7 +39,7 @@ class WarningBarView : FrameLayout {
context.theme.obtainStyledAttributes(attrs, R.styleable.WarningBarView, 0, 0).use {
if (it.hasValue(R.styleable.WarningBarView_icon))
icon.setImageDrawable(it.getDrawable(R.styleable.WarningBarView_icon))
icon.setImageResource(it.getResourceId(R.styleable.WarningBarView_icon, 0))
if (it.hasValue(R.styleable.WarningBarView_text))
text.text = it.getString(R.styleable.WarningBarView_text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment