-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue 93: https://github.com/JoanZapata/android-iconify/issues/93 #121
base: master
Are you sure you want to change the base?
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.