{"action":"created","issue":{"url":"https://api.github.com/repos/krimin-killr21/MaterialScrollBar/issues/5","labels_url":"https://api.github.com/repos/krimin-killr21/MaterialScrollBar/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/krimin-killr21/MaterialScrollBar/issues/5/comments","events_url":"https://api.github.com/repos/krimin-killr21/MaterialScrollBar/issues/5/events","html_url":"https://github.com/krimin-killr21/MaterialScrollBar/issues/5","id":105974229,"number":5,"title":"setHandleColor","user":{"login":"marbat87","id":8694304,"avatar_url":"https://avatars.githubusercontent.com/u/8694304?v=3","gravatar_id":"","url":"https://api.github.com/users/marbat87","html_url":"https://github.com/marbat87","followers_url":"https://api.github.com/users/marbat87/followers","following_url":"https://api.github.com/users/marbat87/following{/other_user}","gists_url":"https://api.github.com/users/marbat87/gists{/gist_id}","starred_url":"https://api.github.com/users/marbat87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marbat87/subscriptions","organizations_url":"https://api.github.com/users/marbat87/orgs","repos_url":"https://api.github.com/users/marbat87/repos","events_url":"https://api.github.com/users/marbat87/events{/privacy}","received_events_url":"https://api.github.com/users/marbat87/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T09:19:32Z","updated_at":"2015-09-11T09:46:29Z","closed_at":"2015-09-11T09:46:29Z","body":"Hi,\r\n\r\nGreat update, it workd almost perfectly!!\r\n\r\nJust one thing I noticed:\r\nBefore the update i was able to use method setHandeColour(int), passing the color itself as parameter.\r\nNow It doesn't work anymore because of the following new line of code in your method, that throws resourceNotFound.. etc...\r\n<pre>\r\n        handleColour = getResources().getColor(colour);\r\n</pre>\r\n\r\n\r\nIs there a chance to get back also the old implementation?\r\nIn my app, for example, I saved the real accentColor integer (choosed by user) in sharedpreferences and it would be very uncomfortable retrieving the resourceId.\r\n\r\nThanks in advance\r\n        "},"comment":{"url":"https://api.github.com/repos/krimin-killr21/MaterialScrollBar/issues/comments/139501885","html_url":"https://github.com/krimin-killr21/MaterialScrollBar/issues/5#issuecomment-139501885","issue_url":"https://api.github.com/repos/krimin-killr21/MaterialScrollBar/issues/5","id":139501885,"user":{"login":"marbat87","id":8694304,"avatar_url":"https://avatars.githubusercontent.com/u/8694304?v=3","gravatar_id":"","url":"https://api.github.com/users/marbat87","html_url":"https://github.com/marbat87","followers_url":"https://api.github.com/users/marbat87/followers","following_url":"https://api.github.com/users/marbat87/following{/other_user}","gists_url":"https://api.github.com/users/marbat87/gists{/gist_id}","starred_url":"https://api.github.com/users/marbat87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marbat87/subscriptions","organizations_url":"https://api.github.com/users/marbat87/orgs","repos_url":"https://api.github.com/users/marbat87/repos","events_url":"https://api.github.com/users/marbat87/events{/privacy}","received_events_url":"https://api.github.com/users/marbat87/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T09:46:29Z","updated_at":"2015-09-11T09:46:29Z","body":"Ok I found that I can get the hex string from the int color, so I can call:\r\n<pre>\r\n.setHandleColour(String.format(\"#%06X\", 0xFFFFFF & intColor))\r\n</pre>\r\n\r\nIt seems to be working fine.\r\nI close the issue.\r\n\r\nRegards,\r\nMarcello"}}