{"action":"created","issue":{"url":"https://api.github.com/repos/jonasoreland/runnerup/issues/306","labels_url":"https://api.github.com/repos/jonasoreland/runnerup/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/jonasoreland/runnerup/issues/306/comments","events_url":"https://api.github.com/repos/jonasoreland/runnerup/issues/306/events","html_url":"https://github.com/jonasoreland/runnerup/issues/306","id":100128810,"number":306,"title":"Biking - Optimize autopause","user":{"login":"ziima","id":331955,"avatar_url":"https://avatars.githubusercontent.com/u/331955?v=3","gravatar_id":"","url":"https://api.github.com/users/ziima","html_url":"https://github.com/ziima","followers_url":"https://api.github.com/users/ziima/followers","following_url":"https://api.github.com/users/ziima/following{/other_user}","gists_url":"https://api.github.com/users/ziima/gists{/gist_id}","starred_url":"https://api.github.com/users/ziima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziima/subscriptions","organizations_url":"https://api.github.com/users/ziima/orgs","repos_url":"https://api.github.com/users/ziima/repos","events_url":"https://api.github.com/users/ziima/events{/privacy}","received_events_url":"https://api.github.com/users/ziima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-10T17:52:00Z","updated_at":"2015-08-16T13:49:09Z","closed_at":null,"body":"It seems autopause sometimes behaves weird when used with biking, especially while biking in city. \r\n\r\nFew times I encountered a incorrect autopause when I stop on crossroads or lights for very short time. The pause happened after I started moving again and resumed when I was far from the stop.\r\n\r\nAn today the activity paused when I slowed down to about 15 km/h and haven't resumed since, even though I was moving."},"comment":{"url":"https://api.github.com/repos/jonasoreland/runnerup/issues/comments/131553632","html_url":"https://github.com/jonasoreland/runnerup/issues/306#issuecomment-131553632","issue_url":"https://api.github.com/repos/jonasoreland/runnerup/issues/306","id":131553632,"user":{"login":"nebmo","id":4735707,"avatar_url":"https://avatars.githubusercontent.com/u/4735707?v=3","gravatar_id":"","url":"https://api.github.com/users/nebmo","html_url":"https://github.com/nebmo","followers_url":"https://api.github.com/users/nebmo/followers","following_url":"https://api.github.com/users/nebmo/following{/other_user}","gists_url":"https://api.github.com/users/nebmo/gists{/gist_id}","starred_url":"https://api.github.com/users/nebmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebmo/subscriptions","organizations_url":"https://api.github.com/users/nebmo/orgs","repos_url":"https://api.github.com/users/nebmo/repos","events_url":"https://api.github.com/users/nebmo/events{/privacy}","received_events_url":"https://api.github.com/users/nebmo/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T13:49:09Z","updated_at":"2015-08-16T13:49:09Z","body":"I did the implementation.. I think it has two issues in AutoPauseTrigger class:\r\n1. It does not seem to take into account if gps connection is lost (last known location is older than mAutoPauseAfterSeconds).\r\n2. I think mHasStopped should be set to false if last speed is > autostopspeed && mHasStopped\r\n\r\nNot sure if changing these two will solve both your issues..\r\n*missing unit tests!* "}}