{"action":"created","issue":{"url":"https://api.github.com/repos/nikanor97/Android_KIS_2018/issues/3","repository_url":"https://api.github.com/repos/nikanor97/Android_KIS_2018","labels_url":"https://api.github.com/repos/nikanor97/Android_KIS_2018/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/nikanor97/Android_KIS_2018/issues/3/comments","events_url":"https://api.github.com/repos/nikanor97/Android_KIS_2018/issues/3/events","html_url":"https://github.com/nikanor97/Android_KIS_2018/pull/3","id":386000437,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0ODQ0MTcy","number":3,"title":"Task 3","user":{"login":"nikanor97","id":28014723,"node_id":"MDQ6VXNlcjI4MDE0NzIz","avatar_url":"https://avatars2.githubusercontent.com/u/28014723?v=4","gravatar_id":"","url":"https://api.github.com/users/nikanor97","html_url":"https://github.com/nikanor97","followers_url":"https://api.github.com/users/nikanor97/followers","following_url":"https://api.github.com/users/nikanor97/following{/other_user}","gists_url":"https://api.github.com/users/nikanor97/gists{/gist_id}","starred_url":"https://api.github.com/users/nikanor97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikanor97/subscriptions","organizations_url":"https://api.github.com/users/nikanor97/orgs","repos_url":"https://api.github.com/users/nikanor97/repos","events_url":"https://api.github.com/users/nikanor97/events{/privacy}","received_events_url":"https://api.github.com/users/nikanor97/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-30T01:37:30Z","updated_at":"2018-11-30T21:54:00Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/nikanor97/Android_KIS_2018/pulls/3","html_url":"https://github.com/nikanor97/Android_KIS_2018/pull/3","diff_url":"https://github.com/nikanor97/Android_KIS_2018/pull/3.diff","patch_url":"https://github.com/nikanor97/Android_KIS_2018/pull/3.patch"},"body":"Иван, подскажи пожалуйста, почему приложение падает при скроллинге RecyclerView? Я изменю картинки на список людей, как в дз сказано, но на данный момент не понимаю в чем ошибка. Я думаю что это связано с тем, что активити с RecyclerView запускается путем Intent из MainActivity, однако что и где надо изменить - не ясно."},"comment":{"url":"https://api.github.com/repos/nikanor97/Android_KIS_2018/issues/comments/443351189","html_url":"https://github.com/nikanor97/Android_KIS_2018/pull/3#issuecomment-443351189","issue_url":"https://api.github.com/repos/nikanor97/Android_KIS_2018/issues/3","id":443351189,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzM1MTE4OQ==","user":{"login":"IvanShafran","id":5469241,"node_id":"MDQ6VXNlcjU0NjkyNDE=","avatar_url":"https://avatars1.githubusercontent.com/u/5469241?v=4","gravatar_id":"","url":"https://api.github.com/users/IvanShafran","html_url":"https://github.com/IvanShafran","followers_url":"https://api.github.com/users/IvanShafran/followers","following_url":"https://api.github.com/users/IvanShafran/following{/other_user}","gists_url":"https://api.github.com/users/IvanShafran/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanShafran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanShafran/subscriptions","organizations_url":"https://api.github.com/users/IvanShafran/orgs","repos_url":"https://api.github.com/users/IvanShafran/repos","events_url":"https://api.github.com/users/IvanShafran/events{/privacy}","received_events_url":"https://api.github.com/users/IvanShafran/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T21:54:00Z","updated_at":"2018-11-30T21:54:00Z","author_association":"COLLABORATOR","body":"У тебя падало из-за OutOfMemory. \r\n1) Твои картинки размера ~1000x1000. \r\n2) Т.к. они лежали в папке drawable, то android определял их как mdpi (хотя могло быть и хуже ldpi).\r\n3) а ты смотрел, наверное, на экране xxxhdpi размера\r\n4) поэтому android дополнительно увеличивал изображения от mdpi до xxhdpi ~ в 2.65 раза по каждой оси\r\n5) Итого 10**6 * 2.65**2 * 5 картинок * 4 байта / 2**20 ~ 100 с лишним мегабайт. И на этом у тебя приложение падало из-за нехватки оперативы\r\n\r\nМораль: использовать decodeResources без ограничения по размеру плохо.\r\nНужно использовать специальные либы типа Glide и подобное.\r\nЧтобы поправить ситуацию быстро: просто переименую drawable папку в drawable-xxxhdpi"}}
{"actor":{"display_login":"IvanShafran"}}