Skip to content
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

Resource not found exception for menus with no icons #12

Closed
scruffyfox opened this issue Oct 14, 2015 · 0 comments
Closed

Resource not found exception for menus with no icons #12

scruffyfox opened this issue Oct 14, 2015 · 0 comments
Labels

Comments

@scruffyfox
Copy link

Looks like the library is constantly looking for icons and tries to use resource 0x0 for items that do not have icons

10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime: android.content.res.Resources$NotFoundException: Resource ID #0x0
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.content.res.Resources.getValue(Resources.java:1266)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.content.res.Resources.getDrawable(Resources.java:785)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.content.res.Resources.getDrawable(Resources.java:752)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at com.kennyc.bottomsheet.menu.BottomSheetMenuItem.setIcon(BottomSheetMenuItem.java:222)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.view.MenuInflater$MenuState.setItem(MenuInflater.java:440)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.view.MenuInflater$MenuState.addItem(MenuInflater.java:493)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.view.MenuInflater.parseMenu(MenuInflater.java:189)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.view.MenuInflater.inflate(MenuInflater.java:110)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at com.kennyc.bottomsheet.BottomSheet$Builder.setSheet(BottomSheet.java:633)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at [redacted].feed.adapter.FeedAdapter$2.onClick(FeedAdapter.java:106)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.view.View.performClick(View.java:4780)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.view.View$PerformClick.run(View.java:19866)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:135)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5254)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-14 14:30:53.178 31113-31113/[redacted] E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
@Kennyc1012 Kennyc1012 added the bug label Oct 14, 2015
Kennyc1012 added a commit that referenced this issue Oct 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants