{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/plyer/issues/287","repository_url":"https://api.github.com/repos/kivy/plyer","labels_url":"https://api.github.com/repos/kivy/plyer/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/kivy/plyer/issues/287/comments","events_url":"https://api.github.com/repos/kivy/plyer/issues/287/events","html_url":"https://github.com/kivy/plyer/pull/287","id":207313163,"number":287,"title":"Plyer android proximity sensor","user":{"login":"malverick","id":22205813,"avatar_url":"https://avatars2.githubusercontent.com/u/22205813?v=3","gravatar_id":"","url":"https://api.github.com/users/malverick","html_url":"https://github.com/malverick","followers_url":"https://api.github.com/users/malverick/followers","following_url":"https://api.github.com/users/malverick/following{/other_user}","gists_url":"https://api.github.com/users/malverick/gists{/gist_id}","starred_url":"https://api.github.com/users/malverick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malverick/subscriptions","organizations_url":"https://api.github.com/users/malverick/orgs","repos_url":"https://api.github.com/users/malverick/repos","events_url":"https://api.github.com/users/malverick/events{/privacy}","received_events_url":"https://api.github.com/users/malverick/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-13T19:19:18Z","updated_at":"2017-03-16T19:23:24Z","closed_at":"2017-03-16T19:01:50Z","pull_request":{"url":"https://api.github.com/repos/kivy/plyer/pulls/287","html_url":"https://github.com/kivy/plyer/pull/287","diff_url":"https://github.com/kivy/plyer/pull/287.diff","patch_url":"https://github.com/kivy/plyer/pull/287.patch"},"body":"Proximity sensor api for android platform.\r\n\r\nThe work is based on #159 and I have done some additional changes to bring it in merge-able state.\r\n\r\n**Issue in the original pr** - Once the proximity sensor is enabled, after covering the sensor, it should display `yes` meaning `sensor has detected a object` instead it was always displaying `no` irrespective of whether it is covered or not. Maybe this was due to not returning correct value by `_get_proximity` function.\r\n\r\nI made the required changes and after that, the example is working something like this - \r\n**Initially**\r\n\r\n![screenshot_2017-02-14-00-20-08-144_org test plyer proximity](https://cloud.githubusercontent.com/assets/22205813/22898780/94310282-f24e-11e6-92ed-7116cb2fe703.png)\r\n\r\n**Just after pressing `enable`**\r\n\r\n![screenshot_2017-02-14-00-20-18-707_org test plyer proximity](https://cloud.githubusercontent.com/assets/22205813/22898815/b71147bc-f24e-11e6-9aea-244f4c3ead57.png)\r\n\r\n**After covering the top part of mobile where sensor is located**\r\n\r\n![screenshot_2017-02-14-00-20-46-977_org test plyer proximity](https://cloud.githubusercontent.com/assets/22205813/22898870/dc012506-f24e-11e6-9e56-7e873d733e5a.png)\r\n\r\nAdditionally, rebasing is also done since the original pr is `117` commits behind `master`.\r\n\r\n**Tested on** -\r\n**Devices** - Xiaomi Mi 4i, Samsung Galaxy S6 Edge\r\n**Toolchain** - old and new both\r\n**Android api** - 19\r\n**Android sdk** - 24\r\n\r\n \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kivy/plyer/issues/comments/287164710","html_url":"https://github.com/kivy/plyer/pull/287#issuecomment-287164710","issue_url":"https://api.github.com/repos/kivy/plyer/issues/287","id":287164710,"user":{"login":"dessant","id":7513068,"avatar_url":"https://avatars3.githubusercontent.com/u/7513068?v=3","gravatar_id":"","url":"https://api.github.com/users/dessant","html_url":"https://github.com/dessant","followers_url":"https://api.github.com/users/dessant/followers","following_url":"https://api.github.com/users/dessant/following{/other_user}","gists_url":"https://api.github.com/users/dessant/gists{/gist_id}","starred_url":"https://api.github.com/users/dessant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dessant/subscriptions","organizations_url":"https://api.github.com/users/dessant/orgs","repos_url":"https://api.github.com/users/dessant/repos","events_url":"https://api.github.com/users/dessant/events{/privacy}","received_events_url":"https://api.github.com/users/dessant/received_events","type":"User","site_admin":false},"created_at":"2017-03-16T19:23:24Z","updated_at":"2017-03-16T19:23:24Z","body":"@malverick, thanks for the fixes. 👍 "}}
{"actor":{"display_login":"dessant"}}