{"action":"created","issue":{"url":"https://api.github.com/repos/gowong/material-sheet-fab/issues/17","labels_url":"https://api.github.com/repos/gowong/material-sheet-fab/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/gowong/material-sheet-fab/issues/17/comments","events_url":"https://api.github.com/repos/gowong/material-sheet-fab/issues/17/events","html_url":"https://github.com/gowong/material-sheet-fab/issues/17","id":115177423,"number":17,"title":"Bug : Resource not found?!","user":{"login":"AndroidDeveloperLB","id":5357526,"avatar_url":"https://avatars.githubusercontent.com/u/5357526?v=3","gravatar_id":"","url":"https://api.github.com/users/AndroidDeveloperLB","html_url":"https://github.com/AndroidDeveloperLB","followers_url":"https://api.github.com/users/AndroidDeveloperLB/followers","following_url":"https://api.github.com/users/AndroidDeveloperLB/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDeveloperLB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDeveloperLB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDeveloperLB/subscriptions","organizations_url":"https://api.github.com/users/AndroidDeveloperLB/orgs","repos_url":"https://api.github.com/users/AndroidDeveloperLB/repos","events_url":"https://api.github.com/users/AndroidDeveloperLB/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDeveloperLB/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gowong/material-sheet-fab/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-04T23:56:17Z","updated_at":"2015-11-05T00:13:34Z","closed_at":null,"body":"I keep getting this:\r\n FATAL EXCEPTION: main\r\n                                                                                      Process: com.gordonwong.materialsheetfab.sample, PID: 3563\r\n                                                                                      android.content.res.Resources$NotFoundException: Resource ID #0x0\r\n                                                                                          at android.content.res.Resources.getValue(Resources.java:1351)\r\n                                                                                          at android.content.res.Resources.getDrawable(Resources.java:804)\r\n                                                                                          at android.content.Context.getDrawable(Context.java:458)\r\n                                                                                          at android.support.v4.content.ContextCompatApi21.getDrawable(ContextCompatApi21.java:26)\r\n                                                                                          at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:321)\r\n                                                                                          at android.support.v7.internal.widget.TintManager.getDrawable(TintManager.java:177)\r\n                                                                                          at android.support.v7.internal.widget.TintManager.getDrawable(TintManager.java:170)\r\n                                                                                          at android.support.v7.widget.AppCompatImageHelper.setImageResource(AppCompatImageHelper.java:53)\r\n                                                                                          at android.support.v7.widget.AppCompatImageView.setImageResource(AppCompatImageView.java:74)\r\n                                                                                          at com.gordonwong.materialsheetfab.sample.adapters.NotesAdapter.onBindViewHolder(NotesAdapter.java:52)\r\n                                                                                          at com.gordonwong.materialsheetfab.sample.adapters.NotesAdapter.onBindViewHolder(NotesAdapter.java:22)\r\n                                                                                          at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5212)\r\n                                                                                          at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5245)\r\n                                                                                          at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4483)\r\n                                                                                          at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4359)\r\n                                                                                          at android.support.v7.widget.LayoutState.next(LayoutState.java:86)\r\n                                                                                          at android.support.v7.widget.StaggeredGridLayoutManager.fill(StaggeredGridLayoutManager.java:1423)\r\n                                                                                          at android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:610)\r\n                                                                                          at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2900)\r\n                                                                                          at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3071)\r\n                                                                                          at android.view.View.layout(View.java:16630)\r\n                                                                                          at android.view.ViewGroup.layout(ViewGroup.java:5437)\r\n                                                                                          at android.support.v4.view.ViewPager.onLayout(ViewPager.java:1627)\r\n                                                                                          at android.view.View.layout(View.java:16630)\r\n                                                                                          at android.view.ViewGroup.layout(ViewGroup.java:5437)\r\n                                                                                          at android.support.design.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1037)\r\n                                                                                          at android.support.design.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:747)\r\n                                                                                          at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)\r\n                                                                                          at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1133)\r\n                                                                                          at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:760)\r\n                                                                                          at android.view.View.layout(View.java:16630)\r\n                                                                                          at android.view.ViewGroup.layout(ViewGroup.java:5437)\r\n                                                                                          at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)\r\n                                                                                          at android.view.View.layout(View.java:16630)\r\n                                                                                          at android.view.ViewGroup.layout(ViewGroup.java:5437)\r\n                                                                                          at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1043)\r\n                                                                                          at android.view.View.layout(View.java:16630)\r\n                                                                                          at android.view.ViewGroup.layout(ViewGroup.java:5437)\r\n                                                                                          at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)\r\n                                                                                          at android.widget.FrameLayout.onLayout(FrameLayout.java:273)\r\n                                                                                          at android.view.View.layout(View.java:16630)\r\n                                                                                          at android.view.ViewGroup.layout(ViewGroup.java:5437)\r\n                                                                                          at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)\r\n                                                                                          at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)\r\n                                                                                          at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)\r\n                                                                                          at android.view.View.layout(View.java:16630)\r\n                                                                                          at android.view.ViewGroup.layout(ViewGroup.java:5437)\r\n                                                                                          at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)\r\n                                                                                          at android.widget.FrameLayout.onLayout(FrameLayout.java:273)\r\n                                                                                          at android.view.View.layout(View.java:16630)\r\n                                                                                          at android.view.ViewGroup.layout(ViewGroup.java:5437)\r\n                                                                                          at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)\r\n                                                                                          at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)\r\n                                                                                          at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)\r\n                                                                                      \tat"},"comment":{"url":"https://api.github.com/repos/gowong/material-sheet-fab/issues/comments/153912215","html_url":"https://github.com/gowong/material-sheet-fab/issues/17#issuecomment-153912215","issue_url":"https://api.github.com/repos/gowong/material-sheet-fab/issues/17","id":153912215,"user":{"login":"gowong","id":7355980,"avatar_url":"https://avatars.githubusercontent.com/u/7355980?v=3","gravatar_id":"","url":"https://api.github.com/users/gowong","html_url":"https://github.com/gowong","followers_url":"https://api.github.com/users/gowong/followers","following_url":"https://api.github.com/users/gowong/following{/other_user}","gists_url":"https://api.github.com/users/gowong/gists{/gist_id}","starred_url":"https://api.github.com/users/gowong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gowong/subscriptions","organizations_url":"https://api.github.com/users/gowong/orgs","repos_url":"https://api.github.com/users/gowong/repos","events_url":"https://api.github.com/users/gowong/events{/privacy}","received_events_url":"https://api.github.com/users/gowong/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T00:13:34Z","updated_at":"2015-11-05T00:13:34Z","body":"Yeah, looks like a bug in the sample app where it's missing a check when setting a note's icon.\r\nIn NotesAdapter, should be:\r\n```java\r\nif (infoImage == 0) {\r\n    holder.infoImageView.setVisibility(View.INVISIBLE);\r\n} else {\r\n    holder.infoImageView.setImageResource(infoImage);\r\n    holder.infoImageView.setVisibility(View.VISIBLE);\r\n}\r\n```"}}