{"action":"created","issue":{"url":"https://api.github.com/repos/y20k/transistor/issues/21","labels_url":"https://api.github.com/repos/y20k/transistor/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/y20k/transistor/issues/21/comments","events_url":"https://api.github.com/repos/y20k/transistor/issues/21/events","html_url":"https://github.com/y20k/transistor/issues/21","id":127792156,"number":21,"title":"IllegalStateException when you try to change the icon","user":{"login":"btimofeev","id":1546407,"avatar_url":"https://avatars.githubusercontent.com/u/1546407?v=3","gravatar_id":"","url":"https://api.github.com/users/btimofeev","html_url":"https://github.com/btimofeev","followers_url":"https://api.github.com/users/btimofeev/followers","following_url":"https://api.github.com/users/btimofeev/following{/other_user}","gists_url":"https://api.github.com/users/btimofeev/gists{/gist_id}","starred_url":"https://api.github.com/users/btimofeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btimofeev/subscriptions","organizations_url":"https://api.github.com/users/btimofeev/orgs","repos_url":"https://api.github.com/users/btimofeev/repos","events_url":"https://api.github.com/users/btimofeev/events{/privacy}","received_events_url":"https://api.github.com/users/btimofeev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/y20k/transistor/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"y20k","id":9103935,"avatar_url":"https://avatars.githubusercontent.com/u/9103935?v=3","gravatar_id":"","url":"https://api.github.com/users/y20k","html_url":"https://github.com/y20k","followers_url":"https://api.github.com/users/y20k/followers","following_url":"https://api.github.com/users/y20k/following{/other_user}","gists_url":"https://api.github.com/users/y20k/gists{/gist_id}","starred_url":"https://api.github.com/users/y20k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y20k/subscriptions","organizations_url":"https://api.github.com/users/y20k/orgs","repos_url":"https://api.github.com/users/y20k/repos","events_url":"https://api.github.com/users/y20k/events{/privacy}","received_events_url":"https://api.github.com/users/y20k/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-20T21:50:26Z","updated_at":"2016-01-22T18:52:05Z","closed_at":null,"body":"**How to reproduce the error:**\r\nopen Transistor -> shut down by pressing the back -> open again -> try to change the icon of any station. \r\n\r\n\r\n```\r\n01-21 00:37:46.789 31054-31054/org.y20k.transistor E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                                     Process: org.y20k.transistor, PID: 31054\r\n                                                                     java.lang.IllegalStateException: Fragment MainActivityFragment{e7db358} not attached to Activity\r\n                                                                         at android.support.v4.app.Fragment.startActivityForResult(Fragment.java:925)\r\n                                                                         at org.y20k.transistor.MainActivityFragment.selectFromImagePicker(MainActivityFragment.java:482)\r\n                                                                         at org.y20k.transistor.MainActivityFragment.access$500(MainActivityFragment.java:58)\r\n                                                                         at org.y20k.transistor.MainActivityFragment$6.onReceive(MainActivityFragment.java:415)\r\n                                                                         at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)\r\n                                                                         at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)\r\n                                                                         at android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116)\r\n                                                                         at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                         at android.os.Looper.loop(Looper.java:148)\r\n                                                                         at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n                                                                         at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n```"},"comment":{"url":"https://api.github.com/repos/y20k/transistor/issues/comments/174010650","html_url":"https://github.com/y20k/transistor/issues/21#issuecomment-174010650","issue_url":"https://api.github.com/repos/y20k/transistor/issues/21","id":174010650,"user":{"login":"btimofeev","id":1546407,"avatar_url":"https://avatars.githubusercontent.com/u/1546407?v=3","gravatar_id":"","url":"https://api.github.com/users/btimofeev","html_url":"https://github.com/btimofeev","followers_url":"https://api.github.com/users/btimofeev/followers","following_url":"https://api.github.com/users/btimofeev/following{/other_user}","gists_url":"https://api.github.com/users/btimofeev/gists{/gist_id}","starred_url":"https://api.github.com/users/btimofeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btimofeev/subscriptions","organizations_url":"https://api.github.com/users/btimofeev/orgs","repos_url":"https://api.github.com/users/btimofeev/repos","events_url":"https://api.github.com/users/btimofeev/events{/privacy}","received_events_url":"https://api.github.com/users/btimofeev/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T18:52:05Z","updated_at":"2016-01-22T18:52:05Z","body":"Commit https://github.com/y20k/transistor/commit/ec0b9237f732277754a3bba96e68831525e9e264 added a new error:\r\nopen Transistor ->  tap to change icon ->  press back -> press back -> open Transistor ->  tap to change icon ->  press back -> press back\r\nThe app is not closed, and opens a window for selecting images."}}