Fixed issue 93: https://github.com/JoanZapata/android-iconify/issues/93#121
Fixed issue 93: https://github.com/JoanZapata/android-iconify/issues/93#121chRyNaN wants to merge 2 commits into
Conversation
|
Thanks for the merge request, and sorry for closing issue #93, thought it wasn't related to iconify. |
|
I had thought that it was allowed to return It should be easy enough to implement an actual static state holder in order to provide a proper implementation of the API, although it would need to contain all the drawable state for it to actually be useful. |
|
I was just looking through the source code of
Therefore, I guess #93 should be classified and reported as a bug in the design support library. |
|
I added a static shared state implementation in #134. |
|
I tried to have this auto-closed by referencing it as resolved by my pull request, but I don't see the indicator for it here. Maybe it doesn't work between pull requests? |
When attempting to set an ActionBar MenuItem with an IconDrawable, such as:
causes a NullPointerException on the setIcon() call. This is due to the internal setIcon() code calling getConstantState().newDrawable(). Since this is not supplied in IconDrawable it causes a NullPointerException. For more details see the issue here: #93. The issue has wrongfully been closed but should now be fixed with the supplied update. Please test and verify that my update is correct and causes no other issues.