{"action":"created","issue":{"url":"https://api.github.com/repos/Mariovc/ImagePicker/issues/35","repository_url":"https://api.github.com/repos/Mariovc/ImagePicker","labels_url":"https://api.github.com/repos/Mariovc/ImagePicker/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/Mariovc/ImagePicker/issues/35/comments","events_url":"https://api.github.com/repos/Mariovc/ImagePicker/issues/35/events","html_url":"https://github.com/Mariovc/ImagePicker/issues/35","id":253285488,"number":35,"title":"On backpress the image set on imageview gets removed","user":{"login":"danlero","id":26010199,"avatar_url":"https://avatars2.githubusercontent.com/u/26010199?v=4","gravatar_id":"","url":"https://api.github.com/users/danlero","html_url":"https://github.com/danlero","followers_url":"https://api.github.com/users/danlero/followers","following_url":"https://api.github.com/users/danlero/following{/other_user}","gists_url":"https://api.github.com/users/danlero/gists{/gist_id}","starred_url":"https://api.github.com/users/danlero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danlero/subscriptions","organizations_url":"https://api.github.com/users/danlero/orgs","repos_url":"https://api.github.com/users/danlero/repos","events_url":"https://api.github.com/users/danlero/events{/privacy}","received_events_url":"https://api.github.com/users/danlero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-28T10:12:22Z","updated_at":"2017-08-28T15:59:00Z","closed_at":null,"body":"Hey I am setting a image in image view through glide, but when I click on a button which triggers the onPickImage and when I backpress and don't select either camera or gallery my image which was set through glide gets removed and I am getting the image from a url through Json. "},"comment":{"url":"https://api.github.com/repos/Mariovc/ImagePicker/issues/comments/325395492","html_url":"https://github.com/Mariovc/ImagePicker/issues/35#issuecomment-325395492","issue_url":"https://api.github.com/repos/Mariovc/ImagePicker/issues/35","id":325395492,"user":{"login":"danlero","id":26010199,"avatar_url":"https://avatars2.githubusercontent.com/u/26010199?v=4","gravatar_id":"","url":"https://api.github.com/users/danlero","html_url":"https://github.com/danlero","followers_url":"https://api.github.com/users/danlero/followers","following_url":"https://api.github.com/users/danlero/following{/other_user}","gists_url":"https://api.github.com/users/danlero/gists{/gist_id}","starred_url":"https://api.github.com/users/danlero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danlero/subscriptions","organizations_url":"https://api.github.com/users/danlero/orgs","repos_url":"https://api.github.com/users/danlero/repos","events_url":"https://api.github.com/users/danlero/events{/privacy}","received_events_url":"https://api.github.com/users/danlero/received_events","type":"User","site_admin":false},"created_at":"2017-08-28T15:59:00Z","updated_at":"2017-08-28T15:59:00Z","body":"It's not a sample project and I'll show the steps : \r\n1.  I am getting a image url from json and I use the url in Glide(Image processing library).\r\n2. So when the user open the activity. The user see an ImageView with Image processed through Glide so here I am having an image from url but I want to change the image and call the Image upload api in my project. \r\n\r\nProblem : \r\n1. When I click the button which triggers the Intent to open the dialog to choose from camera or gallery \r\nI don't select either of two option and press back key and the image which I had in Imageview gets removed with nothing .\r\nYou suggested the code to be used in OnActivityResult and on using the \"==\" condition I can see that condition working but not on \"!=\" but since \"==\" condition is working my code to set image is not working.\r\n\r\n if (resultCode == Activity.RESULT_CANCELED) {\r\n\r\n                Glide\r\n                        .with( getApplicationContext() )\r\n                        .load( thumbnail)\r\n                        .thumbnail( 0.1f )\r\n                        .crossFade()\r\n                        .override(600,350)\r\n                        .into(iv);\r\n                \r\n\r\n        }\r\n\r\nThumbail is a String which got the url.\r\n\r\n"}}
{"actor":{"display_login":"danlero"}}