Update from getInteger to getInt - #19
Conversation
Updated `TypedArray.getInteger` to `TypedArray.getInt` go get `porterduffxfermode`
|
if you can merge this PR in the master branch and create a release for with this PR, it'll be a greate help for me and for those who will experience this in the future 😄 thanks by the way. this is a great library 👍 |
|
Mmh this is strange. The difference between TypeArray.getInt() and TypeArray.getInteger() is that the later will throw an exception if it cant parse it as an Int. Your pull request fixes this indeed, since the getInt function will fall back to a decode from string. Am I missing something else that creates the original problem and adds it as strings your your app ? Thanks |
|
hmm.. I can't pinpoint the problem right now but my assumptions maybe there's a difference in reading styleable attrs in different version of android. especially that you didn't declare the format as integer |
Updated
TypedArray.getIntegertoTypedArray.getIntgetporterduffxfermodeI don't know if this is experienced by someone but, in my end i'm able to experience a crash in my app because the library throws an
UnsupportedOperationException