{"action":"created","issue":{"url":"https://api.github.com/repos/j4velin/Pedometer/issues/131","repository_url":"https://api.github.com/repos/j4velin/Pedometer","labels_url":"https://api.github.com/repos/j4velin/Pedometer/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/j4velin/Pedometer/issues/131/comments","events_url":"https://api.github.com/repos/j4velin/Pedometer/issues/131/events","html_url":"https://github.com/j4velin/Pedometer/issues/131","id":378671784,"node_id":"MDU6SXNzdWUzNzg2NzE3ODQ=","number":131,"title":"Android System thinks pedometer is running in the foreground","user":{"login":"lwmv","id":1805467,"node_id":"MDQ6VXNlcjE4MDU0Njc=","avatar_url":"https://avatars1.githubusercontent.com/u/1805467?v=4","gravatar_id":"","url":"https://api.github.com/users/lwmv","html_url":"https://github.com/lwmv","followers_url":"https://api.github.com/users/lwmv/followers","following_url":"https://api.github.com/users/lwmv/following{/other_user}","gists_url":"https://api.github.com/users/lwmv/gists{/gist_id}","starred_url":"https://api.github.com/users/lwmv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwmv/subscriptions","organizations_url":"https://api.github.com/users/lwmv/orgs","repos_url":"https://api.github.com/users/lwmv/repos","events_url":"https://api.github.com/users/lwmv/events{/privacy}","received_events_url":"https://api.github.com/users/lwmv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-08T10:37:06Z","updated_at":"2018-11-15T07:10:17Z","closed_at":null,"author_association":"NONE","body":"I'm running LineageOS 15.1, Android 8.1. I updated Pedometer from v1.5.6 to v1.5.8 today. The change log of v1.5.8 reads \"add settings shortcut to notification settings on Android 8+\". Now in the settings of pedometer there is a \"Notification settings\" option, I click on this option and it will jump to the system notification settings of pedometer. \r\n\r\nNow the problem is, if I turn off the notification of Pedometer, the Android System will show a notification saying that \"Pedometer is using battery\". And in the battery usage information of Pedometer, the \"While in background\" entry is 0 minute, the “While in active use\" entry equals the time I unplug my phone after full charge. That is to say, though pedometer is actually running in the background, the Android System thinks Pedometer is running in the foreground (in active use) and pop up a notification notifying me of that.\r\n\r\nI downgrade to v1.5.6 and the issue is gone. Now Pedometer is being deemed by the Android System as being running in the background again, and the \"While in background\" entry starts to grow normally. No notification of \"Pedometer is using battery\" any more. In the settings of v1.5.6, the \"Show notification\" is a check box, instead of an option that will direct me to the system notification settings of Android 8.1.\r\n\r\n\r\n![pedometer_v1 4 8](https://user-images.githubusercontent.com/1805467/48193836-6ab26880-e386-11e8-824d-5066c93fdbe5.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/j4velin/Pedometer/issues/comments/438940293","html_url":"https://github.com/j4velin/Pedometer/issues/131#issuecomment-438940293","issue_url":"https://api.github.com/repos/j4velin/Pedometer/issues/131","id":438940293,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODk0MDI5Mw==","user":{"login":"lwmv","id":1805467,"node_id":"MDQ6VXNlcjE4MDU0Njc=","avatar_url":"https://avatars1.githubusercontent.com/u/1805467?v=4","gravatar_id":"","url":"https://api.github.com/users/lwmv","html_url":"https://github.com/lwmv","followers_url":"https://api.github.com/users/lwmv/followers","following_url":"https://api.github.com/users/lwmv/following{/other_user}","gists_url":"https://api.github.com/users/lwmv/gists{/gist_id}","starred_url":"https://api.github.com/users/lwmv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwmv/subscriptions","organizations_url":"https://api.github.com/users/lwmv/orgs","repos_url":"https://api.github.com/users/lwmv/repos","events_url":"https://api.github.com/users/lwmv/events{/privacy}","received_events_url":"https://api.github.com/users/lwmv/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T07:10:17Z","updated_at":"2018-11-15T07:10:17Z","author_association":"NONE","body":"OK, I will just ignore the \"Pedometer is using battery\" notification."}}
{"actor":{"display_login":"lwmv"}}