{"action":"created","issue":{"url":"https://api.github.com/repos/thepracticaldev/DEV-Android/issues/18","repository_url":"https://api.github.com/repos/thepracticaldev/DEV-Android","labels_url":"https://api.github.com/repos/thepracticaldev/DEV-Android/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/thepracticaldev/DEV-Android/issues/18/comments","events_url":"https://api.github.com/repos/thepracticaldev/DEV-Android/issues/18/events","html_url":"https://github.com/thepracticaldev/DEV-Android/issues/18","id":437300695,"node_id":"MDU6SXNzdWU0MzczMDA2OTU=","number":18,"title":"Choose File option does not work","user":{"login":"Bhupesh-V","id":34342551,"node_id":"MDQ6VXNlcjM0MzQyNTUx","avatar_url":"https://avatars0.githubusercontent.com/u/34342551?v=4","gravatar_id":"","url":"https://api.github.com/users/Bhupesh-V","html_url":"https://github.com/Bhupesh-V","followers_url":"https://api.github.com/users/Bhupesh-V/followers","following_url":"https://api.github.com/users/Bhupesh-V/following{/other_user}","gists_url":"https://api.github.com/users/Bhupesh-V/gists{/gist_id}","starred_url":"https://api.github.com/users/Bhupesh-V/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bhupesh-V/subscriptions","organizations_url":"https://api.github.com/users/Bhupesh-V/orgs","repos_url":"https://api.github.com/users/Bhupesh-V/repos","events_url":"https://api.github.com/users/Bhupesh-V/events{/privacy}","received_events_url":"https://api.github.com/users/Bhupesh-V/received_events","type":"User","site_admin":false},"labels":[{"id":972806947,"node_id":"MDU6TGFiZWw5NzI4MDY5NDc=","url":"https://api.github.com/repos/thepracticaldev/DEV-Android/labels/bug","name":"bug","color":"C61C32","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-04-25T16:53:26Z","updated_at":"2019-05-31T20:08:50Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nThe option to update the profile picture on the app is not responding.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Go to 'Settings/Profile Image'\r\n2. Click on 'Choose File'\r\n3. See error\r\n\r\n**Expected behavior**\r\nThe button does not respond.\r\n\r\n**Smartphone (please complete the following information):**\r\n - Device: [Tenor G by Amazon]\r\n - OS: [e.g. 8.0 \"Oreo\"]\r\n"},"comment":{"url":"https://api.github.com/repos/thepracticaldev/DEV-Android/issues/comments/497844269","html_url":"https://github.com/thepracticaldev/DEV-Android/issues/18#issuecomment-497844269","issue_url":"https://api.github.com/repos/thepracticaldev/DEV-Android/issues/18","id":497844269,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5Nzg0NDI2OQ==","user":{"login":"subbramanil","id":9157911,"node_id":"MDQ6VXNlcjkxNTc5MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9157911?v=4","gravatar_id":"","url":"https://api.github.com/users/subbramanil","html_url":"https://github.com/subbramanil","followers_url":"https://api.github.com/users/subbramanil/followers","following_url":"https://api.github.com/users/subbramanil/following{/other_user}","gists_url":"https://api.github.com/users/subbramanil/gists{/gist_id}","starred_url":"https://api.github.com/users/subbramanil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subbramanil/subscriptions","organizations_url":"https://api.github.com/users/subbramanil/orgs","repos_url":"https://api.github.com/users/subbramanil/repos","events_url":"https://api.github.com/users/subbramanil/events{/privacy}","received_events_url":"https://api.github.com/users/subbramanil/received_events","type":"User","site_admin":false},"created_at":"2019-05-31T20:08:50Z","updated_at":"2019-05-31T20:08:50Z","author_association":"CONTRIBUTOR","body":"@maestromac I have submitted a PR that fixes the issue. This is the simplest solution without saving any state information.\r\n\r\nJust a heads-up, The below behavior is the intended behavior of Android.\r\n\r\n1. Click on `Choose File` and go to the gallery and select a pic\r\n2. The form field shows the file chosen\r\n3. Click on `Choose File` again, and cancel the operation by clicking 'back'/choose nothing in the gallery\r\n4. The previously chosen pic is cleared\r\n\r\nWhen you click on `Choose File`, You are leaving from the current app with the intention of selecting a pic. When you press back without selecting a pic, that resets the last value received.\r\n\r\nTo avoid that, We can try cache the chosen pic name locally but there's no callback to clear the cache once the form is submitted. "}}
{"actor":{"display_login":"subbramanil"}}