{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1422","repository_url":"https://api.github.com/repos/mikepenz/MaterialDrawer","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1422/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1422/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1422/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/1422","id":167840195,"number":1422,"title":"setSelection method leaves previous drawer item's icon highlighted","user":{"login":"olmur","id":16815979,"avatar_url":"https://avatars.githubusercontent.com/u/16815979?v=3","gravatar_id":"","url":"https://api.github.com/users/olmur","html_url":"https://github.com/olmur","followers_url":"https://api.github.com/users/olmur/followers","following_url":"https://api.github.com/users/olmur/following{/other_user}","gists_url":"https://api.github.com/users/olmur/gists{/gist_id}","starred_url":"https://api.github.com/users/olmur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olmur/subscriptions","organizations_url":"https://api.github.com/users/olmur/orgs","repos_url":"https://api.github.com/users/olmur/repos","events_url":"https://api.github.com/users/olmur/events{/privacy}","received_events_url":"https://api.github.com/users/olmur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-07-27T12:20:49Z","updated_at":"2016-07-27T14:51:20Z","closed_at":null,"body":"Hi, Mike! \r\nI use this method to select drawer item setSelection() it works fine but previously selected item's icon is still highlighted. I tried to use deselect method first and setSelection(-1) but it didn't help. Could you please help me with this issue? Bug was on Marshmallow.\r\n\r\nHere is image\r\n\r\n![img_2016-07-27 15 20 32](https://cloud.githubusercontent.com/assets/16815979/17174963/b02e41a0-540d-11e6-98a5-ff1ba05c74bd.jpg)\r\n\r\nAlso I have another similar issue. After I select first drawer item and then open and close accounts header drawer item's icon became unhighlighted. And this happened only with first drawer item. If I will select second one and then open-close accounts header everything is fine.\r\n\r\nHere is image\r\n\r\n![img_2016-07-27 15 26 43](https://cloud.githubusercontent.com/assets/16815979/17175160/8f7a6e1a-540e-11e6-8d13-d854cb4c826c.jpg)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/235610009","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/1422#issuecomment-235610009","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1422","id":235610009,"user":{"login":"olmur","id":16815979,"avatar_url":"https://avatars.githubusercontent.com/u/16815979?v=3","gravatar_id":"","url":"https://api.github.com/users/olmur","html_url":"https://github.com/olmur","followers_url":"https://api.github.com/users/olmur/followers","following_url":"https://api.github.com/users/olmur/following{/other_user}","gists_url":"https://api.github.com/users/olmur/gists{/gist_id}","starred_url":"https://api.github.com/users/olmur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olmur/subscriptions","organizations_url":"https://api.github.com/users/olmur/orgs","repos_url":"https://api.github.com/users/olmur/repos","events_url":"https://api.github.com/users/olmur/events{/privacy}","received_events_url":"https://api.github.com/users/olmur/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T14:51:20Z","updated_at":"2016-07-27T14:51:20Z","body":"@mikepenz \r\n` return new PrimaryDrawerItem()\r\n                .withName(getString(titleRes))\r\n                .withIconTintingEnabled(true)\r\n                .withIcon(IconUtil.getIconByRes(this, iconRes, R.color.navigation_drawer_secondary_text_color))\r\n                .withSelectedIconColorRes(colorRes)\r\n                .withSelectedTextColorRes(colorRes)\r\n                .withIdentifier(id)\r\n                .withTypeface(TextHelper.getFontWithType(getAssets(), TextHelper.FONT_500))\r\n                .withBadgeStyle(new BadgeStyle()\r\n                        .withBadgeBackground(getResources().getDrawable(R.drawable.navigation_drawer_badge_circle))\r\n                );`"}}
{"actor":{"display_login":"olmur"}}