-
Notifications
You must be signed in to change notification settings - Fork 215
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
NPE when using in NavigationView #15
Comments
The |
My bad ,it should be Drawable but yeah that's a typo here. From what i understand, Drawable.ConstantState always returns null in default behavior. Probably have to override getConstantState() in MaterialDrawable |
This one is hard for me to justify fixing as the default framework behavior is what it currently does. If the support lib uses one of the methods wrong than the report over there is probably the only thing that will fix it in the long run. A temporary fix would be overriding the MaterialDrawable class and implementing the getConstantState() method there yourself. Cast the Drawable to that overridden one and it should work if I understood everything correctly. |
I have starred the issue btw, I hope it gets fixed asap :) |
Doing this results in NullPointerException in NavgationMenuItemView
This only happens with design support lib 22.2.0.+. Worked fine till 22.2.0. Also broken on v23.
The text was updated successfully, but these errors were encountered: