{"action":"closed","issue":{"url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation/issues/136","repository_url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation","labels_url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation/issues/136/comments","events_url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation/issues/136/events","html_url":"https://github.com/mcharmas/Android-ReactiveLocation/issues/136","id":187988517,"number":136,"title":"Observables switch to the Main thread","user":{"login":"Nec1ord","id":9342388,"avatar_url":"https://avatars.githubusercontent.com/u/9342388?v=3","gravatar_id":"","url":"https://api.github.com/users/Nec1ord","html_url":"https://github.com/Nec1ord","followers_url":"https://api.github.com/users/Nec1ord/followers","following_url":"https://api.github.com/users/Nec1ord/following{/other_user}","gists_url":"https://api.github.com/users/Nec1ord/gists{/gist_id}","starred_url":"https://api.github.com/users/Nec1ord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nec1ord/subscriptions","organizations_url":"https://api.github.com/users/Nec1ord/orgs","repos_url":"https://api.github.com/users/Nec1ord/repos","events_url":"https://api.github.com/users/Nec1ord/events{/privacy}","received_events_url":"https://api.github.com/users/Nec1ord/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-08T13:14:00Z","updated_at":"2016-11-08T14:30:40Z","closed_at":"2016-11-08T14:30:40Z","body":"Here's an observable:\r\n\r\n```java\r\nObservable.just(null)\r\n  .observeOn(Schedulers.io())\r\n  .doOnNext(any -> Timber.i(\"Location settings before - current thread: %s\", Thread.currentThread()))\r\n  .flatMap(any -> mRxLocation.checkLocationSettings(settingsRequest))\r\n  .doOnNext(any -> Timber.i(\"Location settings after - current thread: %s\", Thread.currentThread()))\r\n```\r\nAnd the stack trace:\r\n```java\r\nI/RxLocationPresenter: Location settings before - current thread: Thread[RxIoScheduler-2,5,main]\r\nI/RxLocationPresenter: Location settings after - current thread: Thread[main,5,main]\r\n```\r\n\r\nThe same issue happens with `getLastKnownLocation` and `getUpdatedLocation`.\r\nDidn't check other observables.\r\n"}}
{"actor":{"display_login":"mcharmas"}}